Android ADT: No fragment_main.xml, only activity_main.xml Android ADT: No fragment_main.xml, only activity_main.xml xml xml

Android ADT: No fragment_main.xml, only activity_main.xml


While creating the new Android Project in one of the panels select "Blank activity with Fragment" instead of default selection "Blank Activity". The Android Developer tutorial does not say anything about it. Doing so will create the file fragment_main.xml in res/layout/ which is needed to continue subsequent steps.


Based on the versions you indicated in the comment response, I think updating to the later versions (22.6+) would help, as discussed in https://code.google.com/p/android/issues/detail?id=67421


Try creating a new project with "Blank Activity with Fragment". I hope this is helpful.