The "New Project" wizard in Android Studio is not showing the "Language" option. I want to use Java, but it’s forcing me to use Kotlin.
I am expecting to use Java for Android development. How can I make a Java project?
The "New Project" wizard in Android Studio is not showing the "Language" option. I want to use Java, but it’s forcing me to use Kotlin.
I am expecting to use Java for Android development. How can I make a Java project?
2
Answers
You’ve selected a Jetpack Compose project template, and Jetpack Compose can only be used with Kotlin.
Specifically, you’ve selected the "Empty Activity" template shown below that has the Jetpack Compose logo on it:
To solve this, select any template with "Views" in the name, or select the "No Activity" template. You’ll be given the "Language" dropdown in any of those templates and will be able to select Java there:
That said, Android development is becoming increasingly Kotlin-first; you may wish to consider trying Kotlin.
I’m using
Android Studio Flamingo | 2022.2.1 Patch 1
Except for the selected activity, you can select and use the Java language for other Activities.
This Selected Activity is Jetpack Compose Activity. Jetpack Compose supports only Kotlin language.
For more details: https://developer.android.com/jetpack/compose