Search code examples
android-studio

Android studio no main activity, no layouts on a new project


I installed new Android Studio and created a new project. I asked the wizard to create a main activity. However, there were no layouts, no main activity class, no nothing. I got an error when trying to make new Java class files. The new project tree looks like:

No (main/java) folder.
No (res/layout) folder.
Other words project is useless.


Solution

  • After creating the project, you need to go to File menu and then Import Project. Then browse to the location of your project and import it. Then you will see all of these files and folders. I had this problem too, and it seems to be something that they overlooked in the newer versions of Android Studio (which is quite pathetic if you ask me).