Reputation: 191
SRC folder in Eclipse is empty (MainActivity class not created) after creating a new android project using Eclipse-
I created a new android project using Eclipse. But I am seeing SRC folder is empty in the project explorer. But as per my understanding it should create few .java files automatically like MainActivity.java.
Upvotes: 18
Views: 20868
Reputation: 625
I hope this helps someone :)
I had the same 'error' and it appears to me if when creating the app I use in the 'application name' non ASCII characters !
Example: čžšćđ...
So do NOT USE čžšćđ in Application Name !!!
and yes I know it's not good practice to use them in programing :D
Upvotes: 0
Reputation: 227
I had this problem for the longest time. When creating the android application, use "empty activity" instead of "blank" activity. Fixed the problem for me immediately.
Hope this helps :)
Upvotes: 19
Reputation: 536
Go to following:
'Help'->'Install New Software' and type
https://dl-ssl.google.com/android/eclipse/
Select ADT option and install it. It will update the ADT.
Even I had the same problem and my issue got resolved with it!!
Upvotes: 10
Reputation: 1443
After entering the Application Name, Project name, etc in the New Android Application window, the next window shown is this :
Make sure you check the Create Activity checkbox, otherwise the activity will not be created by default.
You still can create an activity by right-clicking on the project and New > Other > Android > Android Activity. But you have to make sure you check the Launcher Activity checkbox in case it is the first activity of your application
Upvotes: 0