0

I am following the tutorial here: https://developer.android.com/training/basics/firstapp/creating-project.html and when I create the android application project it says there should be a hello world program already inside it. I checked the myApp>res>layout folder and the activity_main.xml file is missing. I have already checked on udemy and many people are having this problem as well and I cannot find the answer. Any help would be appreciated as I am new to this website and programming and app development in general. :)

I am running SDK 23 and and ADT 23. I have visited this thread: Eclipse doesn't generate MainActivity.java & activity_main.xml and have not found a solution. Any help will be appreciated.

edit: I noticed I am also missing my src code. When watching tutorial videos this code is pre-generated. My src file is empty.

Community
  • 1
  • 1
Krzysztof
  • 66
  • 6
  • possible duplicate of [SRC folder in eclipse is empty (MainActivity class not created) after creating a new android project using eclipse](http://stackoverflow.com/questions/22243651/src-folder-in-eclipse-is-empty-mainactivity-class-not-created-after-creating-a) – 999k Jul 02 '14 at 06:37

2 Answers2

0

I have the same problem and tried a lot of things to recover it, but it doesn't want to work until now. It looks like it's a known issue. For more information search for issue-nr 72603 on https://code.google.com/p/android/issues/list.

Andy

Andy
  • 1
  • 1
0

Solution : I have been struggling with this issue for 2 days now. Searched through countless posts and countless suggestions.

With the new ADT kit I was selecting "Blank Activity"

This morning I tried "Empty Activity"

This creates the Main activity

MysticalSam
  • 51
  • 1
  • 10
  • Thank you! This worked perfectly. Strange how they changed what activity to pick without mentioning it in the google documentation. – Krzysztof Jul 02 '14 at 23:54