A free option for java/kotlin is Jetbrains IDEA Community Edition, more
commonly know as "IntelliJ" to the millions of developers who view
paying for software as an injustice. Android Studio is merely a
re-skin of it, with lots of Android-specific extensions.
That's a funny way to spell emacs.
But who am I kidding, I don't code. I could, but then who would waste all of my time reading HN?