Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 707
Jillian Avatar asked Jun 28 '14 17:06

Jillian


People also ask

What is blank activity in Android?

Blank Activity is the same as Empty Activity. 2.) Blank Activity is the simplest activity which you can create. Basic Activity is more advanced than Empty/Blank Activity because have toolbar and one button (FAB).


2 Answers

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

like image 150
Asura Avatar answered Sep 28 '22 15:09

Asura


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.

like image 37
Jillian Avatar answered Sep 28 '22 14:09

Jillian