I have a PC right now which have installed Java in July 2011. When i run my latest download ADT it's work without anything required (I thing they take old installed Java).
Now My trouble is I never see autocomplete. After too many CTRL + Space I got autocomplete but never in Java files.
I found that their is AVD already crated for Android 1.6. Look like someone have used Android Eclipse on computer before.
I not want to know what have used in current PC. I just want to run my latest downloaded ADT which not have any kind of code completion when I work on Java files.
I have deleted the workspace folder and it's not useful. Do someone guide us what to do.
I hear in Another answer here (Raghav sood) that Android use Java 6. Do this means it will work. I thing it's about Android use Java 6's customized package not Java 6.
What I need to do now to make it work.
Just download this bundle:
http://developer.android.com/sdk/index.html
Or try the new Android Studio, which still on beta, released at Google I/O 2013:
http://developer.android.com/sdk/installing/studio.html
If I were in your shoes, I would download and install the latest version of Java, Eclipse and the ADT.
Of Course there could be an other solution, but in my opinion its the fastest way. And you get some bugs fixed with the new version. 2 Years are a long time in android development.
EDIT: Some advice: If you've installed all these things, just zip it so in case your eclipse is broken you've a fast backup.
Related
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.
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
I'm using Eclipse to program Android applications, and when I opened the program yesterday, it popped up an error saying I need to install JRE - I've downloaded the JRE and installed it - when during the installation I got a message saying that the JAVA version I have on the computer (Version 7) is too old for the JRE (Version 8), and that I need to update the JAVA also.
I did so, and then opened up the Eclipse again - And all of the projects,that before worked great, are now full with errors.
I tried installing all of the SDK updates - didn't work, also tried uninstalling Eclipse and re-install it - also didn't work.
The errors I get are: "XXX cannot be resolved to a type" - in amost every single line in the project.
How do I fix it??
Thank you!!
android development tool(adt) are install.. and all update SDK and then import an old program.. Ithink then work.
I would suggest to check that your java build path is functioning properly. This kind of error for me usually means that eclipse cannot find the JRE installation.
Form eclipse you can go to Project->Properties and check for any errors there. Any inconsistency there would cause all your projects to fail.
First of all, you need the JDK installation, not JRE. Second, Android currently supports up to Java v7, which means you'll need to get JDK v7 from here. Make sure you download the correct 32-bit or 64-bit JDK version for your operating system.
Also, ensure your Android SDK and Android Development Tools (ADT) are on the same released version. Different versions of Android SDK and ADT can lead to many unforseen problems.
So I've been learning android on eclipse this summer but decided to try out Android Studio along with the new Android-L release. Right when I make a new project though, I get three errors. The first two are failed to find support:wearables and gms:play-service-wearable and then the third is about Android-L needing jdk 7 to compile. I downloaded jdk 7 and double-checked my skd manager to make sure I had all the updated tools. Everything looks good to me but I can't seem to get these errors to go. Here is a screenshot:
For the last one, try download JDK 7 from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html and run:
/usr/libexec/java_home -v 1.7
You should get something like /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home, instead of /System/Library/... So just change JDK path to the new one.
For the first two issues I just ran into this and fixed it with the help from https://code.google.com/p/android/issues/detail?id=72454:
For Android Studios version 0.8.0
Tools > Manage Add-on Sites > User Defined Sites.
For Android Studios Verison 0.8.1
Android SDK Manager > Tools > Manage Add-on Sites > User Defined Sites.
Add the site https://dl-ssl.google.com/android/repository/addon-play-services-5.xml
Then make sure you have the latest Google Play Services (18)
For the JDK issue I'm vaguely remember getting the same thing months ago and fixed it by downloading JDK 7.
So I have been experiencing this problem for a while. I can use my existing java projects which I created on my PC, but on my laptop I can't create new Java projects. I reinstalled the program & reinstalled modules several times.
So when I click on new project, every java-type project is in the list except the regular one called 'java'... And the funny thing is that Java is the only project type I need at the moment, but it's simply not showing up..
I've looked on the internet for an answer but all I could find was one topic which was unanswered.
Help would be appreciated, a lot.
EDIT: OS: windows 7 64 bits. Using Netbeans 7.2 I think, well the newest for sure.
I just solved this problem by simply deleting .netbeans folder in User\<User>\ and .superId in \AppData\Roaming\NetBeans\
No need to reinstall.
Unfortunately you left out the OS you are using and you didn't mention the version of netbeans you tried!
You should completely uninstall netbeans. On UNIX OSes you'll find the .netbeans Folder in your homedir where netbeans keeps a lot of information. Remove this folder too (I don't know where this folder is stored on Windows OSes).
Having removed both netbeans and this folder, try a re-installation. Now things should look much better!
In my case I have installed multiple JDK (JDK version 8 and 9) due to which Netbeans 8.2 might not working as expected and then I was unable to create project.
Then I removed JDK9 and cleared cache from \Users\admin\AppData in windows.
Then I was able to create Java Project.