Eclipse doesn't generate MainActivity.java & activity_main.xml

前端 未结 9 654
太阳男子
太阳男子 2020-12-03 03:45

On creating a new Android Application Project, MainActivity.java under its package name should be generated automatically in src folder &

9条回答
  •  鱼传尺愫
    2020-12-03 03:59

    Since this query isn't solved, I would like to add from my experience;

    I agree with "SK17" 's advice.. The latest eclipse software somehow generates the MainActivity.xml file by choosing 'Empty Activity' instead of 'Blank Activity'.

    Nevertheless, for some systems, you might also try changing the target SDK to Android 'JellyBean' or 'KitKat' rather than 'API21'.

提交回复
热议问题