Android eclipse not creating empty activity

The problem is that in Eclipse new >> Project >> Android >> Android Application Project >> BlankActivity does not create any actions in the src directory and does not include actions in manifest.xml .

I know this question has been asked before:

  • Eclipse Juno will not create activity in Android
  • Eclipse does not create core activity and layout
  • Eclipse android project does not create empty activity

However , the selected answers to them all say somthing like:

Click Help. → “Install new software” and install (this will update it) from this URL: https://dl-ssl.google.com/android/eclipse/

The above answer did not work for me . Here are some details of my installation:

  • Installed "Eclipse ADT" from the Android website
  • Follow the installation instructions (unpacked content and open Eclipse)
  • Required APIs Loaded Using ADT Manager
  • Tried creating new >> Project >> Android >> Android Application Project >> BlankActivity , this worked fine except for Activity in src or manifest.xml .

  • Tried the answer asked in other SO questions, i.e. “Install new software” and install (this will update it) from this URL: https://dl-ssl.google.com/android/eclipse/ . Updated Development Tools to version 23.0 .

  • I tried to create new >> Project >> Android >> Android Application Project >> BlankActivity , but still did not work.

I know that I can install these files manually, but I follow the Android Dev tutorials, and they often assume that creating the base project works fine and does not give the source files.

+7
java android eclipse adt eclipse-adt
source share
4 answers

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

+4
source share

I just wanted to add, I switched from Eclipse ADT to Android Studio , and all activity creations work fine (i.e. BlankActivity , as well as all the others). It also fixed another bug that I encountered with previewing the GUI in Eclipse.

+2
source share

I had the same problem. I tried installing the ADT plugin + Eclipse package, and when I tried the First Application example, Eclipse would not generate activity.

First install Eclipse manually and then add the latest ADT plugin for me.

Eclipse automatically creates new actions, and I can run the application on the device itself.

Hope this helps.

0
source share

I circumvented this issue by creating Empty Activity instead of Blank Activity when creating a new Android project. Empty Activity provided the same code as for empty action

-one
source share

All Articles