android eclipse not creating blank activity

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

I know this question has been asked before:

  1. Eclipse Juno won't create Android Activity
  2. Eclipse doesn't create Main Activity and layout
  3. Eclipse android project not creating blank activity

However, the selected answers to these 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 setup:

  1. Installed "Eclipse ADT" from the Android website
  2. Followed the installation instructions (unzipped contents and opened Eclipse)
  3. Downloaded necessary APIs using the ADT Manager
  4. Tried creating new >> Project >> Android >> Android Application Project >> BlankActivity, this worked fine except no Activity in src or manifest.xml.

  5. Tried the answer given 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/ . This updated "Development Tools" to version 23.0.

  6. Tried creating new >> Project >> Android >> Android Application Project >> BlankActivity, but still did not work.

I know I could install these files manually, but I am following the Android Dev Tutorials and they often assume the base project creation worked perfectly, and do not give the source files.

Answers


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


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.


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.


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


Need Your Help

PHP ImageJPEG method but for Java

java php image methods jpeg

I'm looking for a Java solution to this. I need a Java method that behave exactly the same as php IMAGEJPEG method does.

Disabled ComboBox looks enabled on Win7

c# winforms windows-7 combobox

In our project we are using many forms and controls. One of our forms is displayed with many included controls. All controls are ought to be disabled when the form is displayed for the first time (...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.