I am new to android Studio. I am trying to create new project in java language. But the language is set to kotlin by default. The drop down does not work. What shall I do? Can someone help me out here?
I am trying to create new project in java language.
The drop down does not work from which i can choose the language.
3
Answers
If you look towards the top of that screenshot, you chose the "Empty Compose Activity" template. That uses Jetpack Compose for its UI, and Jetpack Compose requires Kotlin. You will need to choose a different starter template if you wish to use Java.
Or, consider learning Kotlin, as Kotlin is the long-term direction for Android app development. FWIW, here is a free book of mine on Kotlin.
Why don’t you create "Empty Activity" for learning android studio.
Starting with "Empty Activity" is good for understanding this IDE.
I did the same way when I was starting.
Hope this would help you.
straight forward for your problem
as you see the android studio didn’t recognize the java path from your PC or you didn’t install android studio fully maybe it’s customized so you have 2 way
if you have installed java JDK already you will need to make links between android studio and java, somehow maybe in the config
you didn’t install java yet so (you need to install Java JDK)
install-setup-android-studio-java-jdk-sdk BY techpassmaster
this the closest link I got containing all of steps you need individually