Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I installed new Android Studio. I created new Project and asked the wizard to create main activity. But there were no layouts, no main activity class, no nothing. Error on trying to make new Java class files. The new project tree looks like this:
No (main/java) folder.
No (res/layout) folder.
Other words project is useless.

like image 721
Pavel Masyuk Avatar asked Aug 31 '13 19:08

Pavel Masyuk


2 Answers

From what i learned is that you may be picking the "no layout" option when prompted to pick one. Try picking the basic activity and the rest of the files will show

like image 114
Mohammad Avatar answered Jan 01 '23 09:01

Mohammad


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

like image 30
uSeRnAmEhAhAhAhAhA Avatar answered Jan 01 '23 10:01

uSeRnAmEhAhAhAhAhA