skip to Main Content

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.
enter image description here

3

Answers


  1. 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.

    Login or Signup to reply.
  2. Empty Activity

    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.

    Login or Signup to reply.
  3. 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

    1. if you have installed java JDK already you will need to make links between android studio and java, somehow maybe in the config

    2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search