1

I'm new to Java coding and to Android studio. After selecting to create a new project, I select the option "Empty Activity" and then Java as the language. I essentially follow all the "newby" steps, as described, say, here in the first answer: Starting New Project in Android Studio

When I press finish, I get the following screen:

EDIT: The directory in which Android studio is installed is contained within a User folder that contains a space (it can't be renamed). This might be a source of problems (I don't know). I also tried saving the projects in folder C, not in a subfolder contained within C, but this solves nothing (Android Studio was not installed in said folder).

I've read that upon successfully creating such a new project, I should get a screen with some basic code on it. I get nothing like this. I also read that Android studio should create an xml file and a .java file. The .java file is missing.

What's going wrong here? Where can I start writing code? How can I fix this?

TheQuantumMan
  • 257
  • 1
  • 3
  • 10

1 Answers1

0

Its look like your project is not created properly, If you create new project in android studio it will look like as below SS. enter image description here

You can also check your project folder and file from finder option like below SS. enter image description here

After that you can see below structure for your project enter image description here

You don't found anything like above SS please try to create another project but this time change your location for your project.

One more thing in Android Kotlin is more preferable over JAVA so also check with Kotlin for development.

Good Luck!!.

Heet Changela
  • 565
  • 1
  • 11
  • Thanks for the answer. I have tried creating another project in a different location, but it didn't work either. Moreover, in your second screenshot, on the left of the code with the list with the 3 options, I do not have the first option, so I don't even have an option for the finder. Maybe I'm missing something? For example, I only downloaded Android Studio, but I never did anything concerning Java, so I might need to install something related to Java? A .java file is not created upon the creation of a new project; only an xml file. – TheQuantumMan Jan 13 '23 at 07:50
  • Ok got it, check this link for your JDK location [https://stackoverflow.com/questions/19608742/how-to-set-java-sdk-path-in-androidstudio] I hope this will help you. – Heet Changela Jan 13 '23 at 08:42
  • Just a quick question: I installed Android studio, and then in a separate directory the JDK. Does this affect anything? Also, do I have to install SDK? – TheQuantumMan Jan 18 '23 at 16:55
  • Does the JDK path affect anything? I get the feeling that by installing Android Studio and then Java, I might have botched up the whole thing – TheQuantumMan Jan 18 '23 at 17:01
  • 1
    1)JDK in separate directory-> not a problem you have to give proper path (I am using mac and I have jdk in library folder) 2)Need to install SDK-> Yes we need SDK 3)JDK path affect anything-> If you properly provided path in android studio then it not create any problem. – Heet Changela Jan 19 '23 at 05:17