Search code examples
androidandroid-activitylayout

Adding new Activity in Android failed in Android studio 2.2.3


the first image has main>new> activity option

enter image description here

the second image doesn't have main>new> activity option

enter image description here

the first image is from udacity tutorials with older version of Android studio. Second image is my Android studio latest version 2.2.3. I want to add a new layout but the option is not there.


Solution

  • on Android Studio, your second image to create a layout file choose the option "Android Resource File"

    Right Click -> New -> Android resource file

    on the window that will appear choose Layout