Eclipse ADT not generating MainActivity - java

I am having an immensely frustrating issue with Eclipse and the ADT after updating all the SDK's, API's and Support Libraries for Android this week.
Ever since updating everything I am unable to properly create an Android Project in Eclipse. It does not generate the MainActivity.java or the main_layout.xml files at all. I have read through most of the other posts regarding this and the fixes they suggest don't seem to work. I have tried looking for the updated software by going to:
Help --> Check for updates (Everything is up-to-date).
I have also tried the manual way by going to:
Help --> Install New Software and inputting https://dl-ssl.google.com/android/eclipse/
It still says I have the latest version of the ADT.
I have also tried reinstalling the ADT plugin as well, but to not avail.
Trying to create an Activity after project creation also does not work.
Versions of software that I am running:
Android SDK Tools 24.0.1
Android API 1.5 up to and including API 5.0.1
Eclipse: Luna Service Release 1(4.4.1)
ADT Plugin Not sure
Thank you for taking the time to read this.

The ADT and SDK Tools must be compatible. The latest ADT version is "ADT 23.0.4". And the corresponding SDK Tools version is 23.0.5. You have updated your SDK Tools version to 24.0.1, but there are no ADT version can support. So you should roolback to the SDK Tool version 23.0.5.
Here is the link:
https://dl-ssl.google.com/android/repository/tools_r23.0.5-windows.zip

Add an Empty Activity, instead of Blank Activity. This will generate MainActivity.java

What is your Java version? You didn't mention about it. Please check it, it should be Java 7 for Android 5.0. If you have Java 7 then check eclipse.ini file. If it refers to Java 6 then change here also to Java 7.

Google fixed this issue and below link may help you.
https://code.google.com/p/android/issues/detail?id=82393

Related

Can't find Android SDK for Eclipse with ADT plugin

I really need to setup Android development with eclipse (ADT plugin) just after format my laptop...
I know everywhere suggest to migrate to Android Studio but really NOT want to do it until next release may be next month.
It always brings to THIS PAGE and forcing to install android studio which is NOT what I am looking for at the moment.
Also I find this LINK that provides ADT plugin installation guide but after successfully install ADT plugin it's not downloading and install SDK as earlier....
Would be grateful if anyone can guide me just to set up eclipse for Android development until migrate to Android Studio in a convenient time. Thanks
I don't have first-hand experience with this, but if your ADT plugin cannot install Android SDK anymore, you can try a workaround: install AndroidStudio, let it install the SDK, and let ADT look at the same directory. I did this a number of times in the opposite direction (starting with working Eclipse/ADT, and reusing same SDK from AS).
I did the same as you, I downloaded a "stand alone" version of ADT and dowloaded every Android version that I wanted to work with.
I downloaded Eclipse Mars, opened it, then I went in the Market Place (in Tools if I remember correctly) and looked for "Android". I then downloaded the ADT (Android Developer Tool) which you can also find on this page : http://marketplace.eclipse.org/content/android-development-tools-eclipse
to clarify, the problem is ADT doesnt install the sdk folder anymore, and also, doesnt support any of the sdk manager above their last version... you can try to look up a sdk manager version that suits ADT, but good look with that. The only way to use eclipse with android sdk is to copy another eclipse well configured with de sdk manager folder, from another pc

Which Eclipse works flawlessly with ADT?

There are many Eclipse versions out there. e.g.:Indigo,Juno,Kepler,Luna,Mars. Which of these works best with ADT? There are many such questions on Stack Overflow, but they are all 4-5 years old. I am looking for something more recent.
I reached your question as I was wondering about this myself, since I found "the official IDE for Android" (Android Studio 1.1.0 Build 135.1740770) pretty horrible:
It doesn't work well with multi-module imported projects.
Its Logcat output format is several years backwards compared with that of Eclipse
What I do know is that back then, when Google still supported Eclipse as "official", it released a nice integrated bundle (adt-bundle-windows-x86_64.zip) that was based on Juno (
Eclipse Classic 4.2.2). It worked very well with ADT v21 and SDK Tools v21 (note: ADT and SDK are totally different things, their version numbers don't have to necessarily be identical).
Right now (as of 2015-05-01), you can download ADT 23.0.6 (March 2015) which is designed to work with SDK Tools r24.1.2.
Right now (as of 2015-05-01), you can also download Eclipse Kepler (4.3.2) and Luna (4.4.2). It is very tempting to always use the latest & greatest but I vaguely recall problems with it?. The Google Plugins for Luna & Kepler are really for web applications, not for Android.
So in the meanwhile (until Android Studio catches up with the maturity and the features the Eclipse+ADT has), I am going to stick with the final version of the ADT Bundle. It is still using Juno (
Eclipse Classic 4.2.2), so I guess this is the most stable/reliable Eclipse+ADT combo.
If you have additional information on seamless & flawless development for Android with an Eclipse version higher than Juno, I would love to learn more about it.
In my test with Linux Mint 17, ADT 23.0.7 works best with Eclipse Luna (4.4). The Android layout editor has various graphical glitches in Eclipse Mars (4.5), for example most of GUI widgets palette do not show up until you hover your mouse cursor and you get error-report popup constantly in bottom-right of the screen.
EDIT:
Google has deleted the download link of ADT, so ADT 23.0.7 is now officially the final version. Therefore, I can conclude that the last supported Eclipse version is Luna (4.4).
In the case you want to download the final ADT, the link is below:
https://dl.google.com/android/ADT-23.0.7.zip
Refer to the "Troubleshooting ADT Installation" section of Installing the Eclipse Plugin (Web Archived) for instructions. Note that you have to select ADT-23.0.7.zip instead of ADT-23.0.6.zip.
Which of these works best with ADT?
That would depend on what version of ADT you are using. To know more about which versions of Eclipse supports what all ADT version refer to ADT Plugin Release Notes.
I don't think there is any "best" eclipse version to work with an ADT. Just go for the latest Eclipse version that can use the ADT version you intent to use.
Also as per the documentation
Note: If you have been using Eclipse with ADT, be aware that Android Studio is now the official IDE for Android, so you should migrate to Android Studio to receive all the latest IDE updates. For help moving projects, see Migrating to Android Studio.
It depends, i think you should have to use Android Studio, Android studio is official IDE for android.
if you want to go with eclipse, i have good experience with helios, but it depends which version of ADT you are using.

Android API 21 only allows creation of empty activity

After upgrading to API 21 i can't create new blank activitys in any project and when i create a new one the only activity that allows me to create is an empty one, otherwise it creates the src and res folders empty.
I'm using eclipse. i've tried the solution here http://developer.android.com/sdk/installing/installing-adt.html#Download, but it is already installed.
Please, help.
The ADT and SDK Tools must be compatible.
For example,
If the latest ADT version is "ADT 23.0.4". And the corresponding SDK Tools version is 23.0.5. You updated your SDK Tools version to 24.0.1, but there are no ADT version can support. So you should roolback to the SDK Tool version 23.0.5.
Here is the link.
It may help you.

Android Eclipse - Cannot see annotation processing option

I am unable to fine the option to set annotation processing in my Eclipse preferences.
Not sure since when am I getting this problem but surely it has started to occur after I updated eclipse last.
I also tried pasting the annotations.jar file in tools/support folder but to no good.
Kindly help.
TIA
Installing
Programming Languages > Eclipse Java Development Tools
may enable it again.
It seems Google removed the Annotation Processor option from project properties in the ADT bundle. We are tracking the problem in this AndroidAnnotations issue. The current workaround for this is not installing the bundle, but downloading a standalone Eclipse distribution and adding the ADT plugin to that.
Updating Eclipse Java Development Tools worked for me.
Try This
If annotations.jar is missing, it maybe ADT 23 related problems.
Check this.
Update eclipse with Android Development tools 23
Google response:
...
and copy over the following files:
tools/hprof-conv
tools/support/annotations.jar
tools/proguard
(Added)
If its ADT bundle problem (part of ADT 23 related problem),
this part is for you. (Linked above)
Google response:
...
This is a packaging bug. The entire proguard file is missing. We'll have an update asap, but until then just copy it over from a previous version of the tools:
...
Edit: with the latest ADT release, the bundle should now work with auto-update, so install these new versions:
linux 64 bit vm: http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip
linux 32 bit vm: http://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip
mac: http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip
win32: http://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip
win64: http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip
Don't try to upgrade from previous version because it doensn't work at all. If you have got problems with zipalign, it's now under platform-tools and no more under tools/ so you can do a symbolic link or just copy it into the expected folder.
or use "not-bundled" Eclipse.
ADT23 problem related links
Issue 72400 (merged into 72419) getDefaultProguardFile no longer returns valid path using build SDK tools 23
Issue 72419 Proguard not installed with SDK tools rev. 23
Copied APTDemo.jar from http://www.eclipse.org/jdt/apt/APTDemo.jar in the lib folder and I can see the option in my compiler preferences. I will investigate later, fixed my problem for now.

Cannot create android application using eclipse

NOTE: I have already fixed this problem. I used the methods described in a previous question/answer discussion. Thank you for whoever tagged this as previously answered!
It an be found here: ADT 22.2 New App Wizard: Unsupported template dependency: Upgrade your Android Eclipse plugin
Today I just downloaded and installed Eclipse via the developer.android.com tutorials. I had almost initiated my first Android Application when I came across this error:
I don't understand the error. It does not specify a required version, and my version is the most up to date version. Neither the [Install/Upgrade] nor the [Check Again] buttons appear to function. I have also tried to delete and reinstall the Android Support Library via the SDK Manager multiple times.
Can any one help me? Thanks in advance!
Note - I do in fact have both the Android Support Library and Android 4.3 installed:
*Edited to add picture and note*
How did you create your project? Steps: New -> Android Application Project? If you've done this, you should check whether you have installed "Android 4.3" and "Extras->Android Support Library" in Android SDK Manager.
Go to the Android SDK Manager, then download the required Android version, in your case, version 18 which is Android 4.3.
Right click on the project -> properties -> Android -> select a platform like 4.0
It sounds like you don't have installed android 4.3 sdk(API level 18).
Please open eclipse->windows->android sdk manager and make sure your android 4.3(API 18) status is installed.
Download from http://dl-ssl.google.com/android/repository/tools_r22-windows.zip, unzip it and replace the /tools folder with this one to downgrade the sdk tools. There's a bug in version 22.
Sorry, but someone found that this is a duplicate. I replaced my sdk/tools/templates/activities folder with a more up-to-date one, which resulted in success. The steps and files can be found here:
(ADT 22.2 New App Wizard: Unsupported template dependency: Upgrade your Android Eclipse plugin)
Thank you for all who took time to try and answer my questions. It is much appreciated!

Categories