android eclipse not creating blank activity

前端 未结 4 1221
囚心锁ツ
囚心锁ツ 2021-02-09 10:23

The problem is, in Eclipse, the new >> Project >> Android >> Android Application Project >> BlankActivity does not create any Activities in

相关标签:
4条回答
  • 2021-02-09 10:58

    I had the same problem. I tried installing the ADT plugin + Eclipse bundle and when I tried their "My First App" example Eclipse would not create an activity.

    Manually installing Eclipse first and then adding the latest ADT plugin worked for me.

    1. I installed Eclipse Standard 4.4 first (http://www.eclipse.org/downloads/).
    2. Then I installed the Android SDK (https://developer.android.com/sdk/index.html - use the "GET THE SDK FOR AN EXISTING IDE" link)
    3. Then I installed the ADT plugin for Eclipse (https://developer.android.com/sdk/installing/installing-adt.html)
    4. Then I was able to follow their demo project successfully.

    Eclipse does automatically create new activities and I can run the application on an actual device.

    Hope that helps.

    0 讨论(0)
  • 2021-02-09 11:04

    Just wanted to add, I switched from Eclipse ADT to the Android Studio and all of the Activity creations work perfectly (i.e. BlankActivity, as well as all of the others). It also fixed another bug I was experiencing with the GUI preview in Eclipse.

    0 讨论(0)
  • 2021-02-09 11:24

    its currently bugged if you updated to 23.0. see https://code.google.com/p/android/issues/detail?id=72419

    0 讨论(0)
  • 2021-02-09 11:24

    I bypassed this issue by creating Empty Activity instead of Blank Activity while creating new android project. Empty Activity provided same code as that of Blank Activity

    0 讨论(0)
提交回复
热议问题