I updated Eclipse with the new SDK tools (rev. 23), but now when Eclipse starts I receive the error:
This Android SDK requires Android Developer Toolkit version 23.0.0 or above. Current version is 22.6.3.v201404151837-1123206. Please update ADT to the latest version.
No updates were found with "Check for updates". If I try "Install new software", I can see version 23, but I can't upgrade due to the following error:
Cannot complete the install because of a conflicting dependency.
Software being installed: Android Development Tools 23.0.0.1245622 (com.android.ide.eclipse.adt.feature.feature.group 23.0.0.1245622)
Software currently installed: Android Developer Tools 22.2.1.v201309180102-833290 (com.android.ide.eclipse.adt.package.product 22.2.1.v201309180102-833290)
Only one of the following can be installed at once:
ADT Package 22.6.3.v201404151837-1123206 (com.android.ide.eclipse.adt.package 22.6.3.v201404151837-1123206)
ADT Package 23.0.0.1245622 (com.android.ide.eclipse.adt.package 23.0.0.1245622)
Cannot satisfy dependency:
From: Android Development Tools 23.0.0.1245622 (com.android.ide.eclipse.adt.feature.feature.group 23.0.0.1245622)
To: com.android.ide.eclipse.adt.package [23.0.0.1245622]
Cannot satisfy dependency:
From: Android Development Tools 22.6.3.v201404151837-1123206 (com.android.ide.eclipse.adt.feature.group 22.6.3.v201404151837-1123206)
To: com.android.ide.eclipse.adt.package [22.6.3.v201404151837-1123206]
Cannot satisfy dependency:
From: ADT Package 22.2.1.v201309180102-833290 (com.android.ide.eclipse.adt.package.feature.group 22.2.1.v201309180102-833290)
To: com.android.ide.eclipse.adt.feature.group 22.2.0
Cannot satisfy dependency:
From: Android Developer Tools 22.2.1.v201309180102-833290 (com.android.ide.eclipse.adt.package.product 22.2.1.v201309180102-833290)
To: com.android.ide.eclipse.adt.package.feature.group [22.2.1.v201309180102-833290]
After download of the last ADT from the web site, it seems there's another problem.
With SDK Tools rev. 23 proguard is not installed, the folder SDK dir/tools/proguard
is missing, and other tools are missing. This version contains several bugs.
I did this to solve the same issue (in OS X):
Hope it helps.
This worked for me. I kept upgrading to version 23.02 (or 23.03 if presented) using a new install of ADT bundle, and migrating the your original workspace across and add the patches. This is the procedure for ADT Bundle only.
(Backup your workspace first)
1/ install latest adt bundle from google. (For some reason using Googles download page just goes around in a loop on Chrome!?!)
2/ download the patch from here:
3/ Apply the patch as per Googles (poorly described) instructions
...and copy over the following files:
tools/hprof-conv
tools/support/annotations.jar
tools/proguard
Which means => Copy the file only of tools/hprof-conv
Which means => Copy the file only of tools/support/annotations.jar
Which means => Copy the directory and all contents for tools/proguard
3/ Point your old workspace to the new install on startup. (Projects will still come up with errors, don't worry)
4/ select Help-> Install new software, select update site, and select version 23.03 when prompted.
5/ If you still get errors on references to "android.R", this is because you may not have the appropriate "platform build tools". Check the "Android SDK Manager" for which build tools you have like this: Also check your "Android" build for the project to make sure you have the compatible Android API.
Version 23.02 should be downloaded, and your projects should now compile.
Google have abandoned all the UI trimmings for Eclipse ADT (ie you'll see the Juno splash). I thought this would be a problem but it seems ok. I think it shows how desperate Google were to get the fix out. Given that Android studio is not far away Google don't want invest any more time into ADT. I suppose this is what you get with "free" software. Hopefully the adults are back in charge now, and Google Studio won't be such a disaster.
I solved these problem by deleting the ADT Bundle which was showing an error.
Then I extracted the new ADT bundle to solve these problems. After that, I just updated the Android 4.4.2(API 19) in Android SDK Manager.
You are getting these errors because of updating the Android SDK Tools 22.6.2. Below I show the screenshot of it.
Install everything as shown in the screenshot itself. Then these problems will not occur again.
You need to uninstall the old version and install 23
uninstall: Help > about Eclipse SDK > Installation Details select Android related packages to uninstall
And then install V23.
After trying the approaches in other answers without success, I just installed a new bundle from http://developer.android.com/sdk/installing/index.html?pkg=adt and that worked fine.
Do the following:
With these steps, you should't have to reconfigure everything, and you won't need to spend time troubleshooting this BUG on this upgrade from Google Developers.
Good luck! ;-)
There is a lot of confusion going around in this thread. There are two solutions depending on how you installed ADT.
If you installed the ADT plugin manually then I believe you can use the "Delete ADT" -> "Install New Software" approach.
If you are using the ADT Bundle then do not follow that solution! You will break Eclipse. Here is an update from a Google member - read #18:
You must download a new version of the ADT-Bundle (yep, it's frustrating!).
I was updating my build server today and came across the same issue. It has been reported here: https://code.google.com/p/android/issues/detail?id=72419
The fix is in progress and the work around according to the project manager is:
Please wait for an updated version within a day or two. Until then, your workaround is to do download one of
http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz
http://dl.google.com/android/android-sdk_r22.6.2-windows.zip
http://dl.google.com/android/android-sdk_r22.6.2-macosx.zip
and copy over the following files:
tools/hprof-conv tools/support/annotations.jar tools/proguard
[edit] zipalign was missing for me too, check to see if you need to copy this as well
On ADT-bundled Eclipse I had to first uninstall the ADT and then do a fresh install.
To remove the ADT plugin from Eclipse:
The prefect answers is. Enter the follow path,copy all of them
Macintosh HD ? ???? ? adt-bundle-mac ? sdk ? platform-tools
then parse into Macintosh HD ? ???? ? adt-bundle-mac ? sdk ? tools
,
last,edit the line plugin.version=23.0.0
of file Macintosh HD ? ???? ? adt-bundle-mac ? sdk ? tools ?plugin.prop
,such as plugin.version=21.0.0
.
restart eclipse.everything is all-right.
Based on win7. Eclipse Version: 4.2.2 Build id: M20130204-1200
For those who broke Eclipse after trying to uninstall ADT plugin.
You need to remove all android folder/jars from plugin folder and features folder.
Then check your config.ini in /configuration. Probably you have these lines:
eclipse.product=
...
eclipse.application=
change them like this:
eclipse.product=org.eclipse.platform.ide
eclipse.application=org.eclipse.ui.ide.workbench
Maybe needed to run your eclipse from command line:
eclipsec.exe -clean.
Then I could install the newest ADT plugin, without needing to download whole eclipse packages and loosing all configuration/plugins.
I faced the same problem and solved it. You need to uninstall the Android plugin entirely from within Eclipse (from the "about" section..), including trace view..
Then added the ADT Plugin again (https://dl-ssl.google.com/android/eclipse/) and install it.
The problem is solved!
I guess it's a bug with the SDK manager or ADT Plugin update mechanism...
I have done following to resolve an issue.
Go to http://developer.android.com/sdk/installing/installing-adt.html and download the latest ADT ZIP file (at the bottom of page).
Go to Eclipse ? menu Help ? About Eclipse ? Installation details
Delete Android DDM, Android Development Tools, Hierarchy Viewer, Native Development Tools, TraceView, etc., 22.X version.
Menu Help* ? Install New Software ? Add ? Archive ? *Select the downloaded ZIP file in step 1.
Select all the latest version of all 23 which I have deleted in step 3 and accept the license agreement.
Restart Eclipse, and it fixes my issue.
None of the other answers worked for me using the ADT bundle published on developer.android.com.
I ended up downloading the latest version of Eclipse (not the ADT bundle) and then installing the ADT plugin via menu Help ? Install new software ? entering https://dl-ssl.google.com/android/eclipse
(mentioned by @RED_).
I also had to update my workspace to point to my previous workspace, and most things seemed to be restored.
On a side note: This seems like a good time to migrate to Android Studio...
Complete procedure to download ADT, configure it in Eclipse, and fixing dependency issues:
Download ADT:
Open this link: https://dl-ssl.google.com/android/eclipse/
Download ADT-23.0.2.zip which is the latest version to a ZIP folder and don't unzip it.
Configure ADT in Eclipse:
**An error may come as duplicate location. To solve it, follow the below steps:
1.1 Close the current dialog box.
1.2 Click on Available software sites link, and select the entry which has the same location as you have added the zipped file or ADT Plugin entry. After selecting, remove it.
1.3 Then again, come to the previous Add... dialog.
1.4 Again, add Name and Location in the Add Repository dialog box.
Select all the options in Development Tools and click on Next to install the ADT completely.
Fixing dependency issues in ADT: After all the above steps, dependency issues may come. To solve it, follow the following steps:
Click on Already installed in the Install dialog box.
Click on Installed Software tab, and now select all the development tools of the previous version looking at versions and uninstall them.
Now all the issues of dependency issues would evaporate and follow the Next, Next wizard to install:)
All the best. It will definitely help.
is what they are saying about this:
OK, guys, sorry about all this trouble, and we apologize for the messed up releases. Here's the summary:
You can do one of two options:
Install Eclipse from eclipse.org and install ADT by pointing to the update site: https://dl-ssl.google.com/android/eclipse
Download bundles from here:
Starting with ADT bundle 23.0.2, you should be able to update to future versions of ADT.
Source: https://code.google.com/p/android/issues/detail?id=72912
DO NOT DO THIS
Warning: Please see the comments below this answer. These steps have had a negative impact for many people.
I hope it helps!
I am using Eclipse v4.3 (Kepler), and this is how I solved my problem.
Goto menu Help ? Install new software ? click Add.
In the popup, give any name (I named it as Eclipse ADT Plugin), and in the link's place, use https://dl-ssl.google.com/android/eclipse/
Once you click OK, you will be displayed with new packages that will be installed and old packages that will be deleted. Don't worry about these packages. Click OK.
New packages will be installed, and this should solve your problem.
How to update from 22.xx.x to 23.0.2 (my solution). This will beat the dependency issues.
I was suffering from this issue for days, and I have tried every single solution on this link, but no luck. I finally figured out a solution that actually works!
Please note that this solution works in Windows 7 (64 bit). It should probably work for other Windows operating systems.
Here we go:
download the latest ADT bundle from
unzip it and open "eclipse" folder --> "plugins" folder
Now go to your old eclipse and open "eclipse" folder --> "plugins" folder, and copy everything inside.
Now paste them into the "plugins" folder of the (NEW ECLIPSE), but DO NOT overwrite anything.
While inside of the "plugins" folder of your new Eclipse, do the search. Type in 22.
(notice 22 with a dot) and hit enter.
The search result will show up all the files or folders with .....22.6...... For example,
com.android.ide.eclipse.adt_**22.6.2**.v201403212031-1085508
Highlight all of these files/folders and hit delete key.
Make sure to update your old API/SDK to the latest version and load this sdk directory to work with your new eclipse.
or
You can watch this video, which shows you how to move all your SDK/API to your new SDK folder.
Link: https://www.youtube.com/watch?v=jPZpJdnbbN0
I have not tried to update from any other ADT versions, but I think it should work for any old ADT versions too.
Don't forget to backup stuff before attempting.
WARNING
There is now an update for ADT 23.0.1, but the Windows and Linux scripts are messed up, so wait with the upgrade!
You could check for example tools/proguard/bin/*.sh in http://dl.google.com/android/android-sdk_r23.0.1-windows.zip.
I simply went to my Android resources folder on my C:/ drive (C:/Android
), deleted the 'eclipse' folder and all its contents. I downloaded Android Developer Tools once more and just moved over the 'eclipse' folder.
I started up and everything was fine; I had updated to version 23.
Hopefully this helps, possibly not suitable for everyone as some of you have Eclipse modifications but for someone who, like me, wanted a quick fix and get back to developing this seemed to be the easiest path.
I had to delete ADT and install it again.
However be warned, this caused me and one other person to have an annotations.jar missing errors in the Java Build path for certain projects, probably because it was trying to look for an old SDK, so upgrading projects is the next step I have to take.
The errors relate to libraries mostly, Google Play Services, Facebook SDK, ActionBarCompat.
For this step, you uninstall ADT, then put the URL back in to download them. The url is: https://dl-ssl.google.com/android/eclipse
There is no way to update an existing ADT bundle that you might have downloaded.
You can do one of two options:
Install Eclipse from eclipse.org and install ADT by pointing to the update site: https://dl-ssl.google.com/android/eclipse
Download bundles from:
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
Windows 32 bit: http://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip
Windows 64 bit: http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip
Starting with ADT bundle 23.0.2, you should be able to update to future versions of ADT.
It's working to uninstall the old files, but you don't have to restart Eclipse. After the uninstall process, install the new software and then restart Eclipse.
It was quite simple and works for me.
There is a new update available.
This will fix the empty src & layout issue.
For me it helped to delete Android 4.4W which is also API 20 and might be a cause for the conflict. So only install Android 4.4W or Android L until they fix it.
And (again this might only be for me) it only works in Android Studio not in Eclipse ...
The answers already provided display how much the solution depends on your particular environment. I initially tried upgrading a Windows 8.1 machine; when that failed I tried upgrading a Vista PC. When that failed, I tried Android Studio on the Win 8.1. The problems that we all are encountering are resulting in different solutions because of version conflicts between O/S, Eclipse, Java and, of course, the Google debacle.
Here's what I did: I gave up on the bundle. For Vista I installed Eclipse 4.3.2 (Kepler) and downloaded the SDK installer which loaded 23.0.2. Already had jdk1.6 installed. Only gotcha left was to use the SDK manager to download my minimum platform (API 8) - V20 isn't that far backward compatible. But at least now I am not totally dead in the water.
For Windows 8.1 Android Studio seemed to install. But when I tried to install my Project, it stopped when it complained that google-play-services_lib was not included. I had not been using it, so it appears this is a requirement of Android Studio. Really?
So I went back to Eclipse. I had installed Luna and jdk8u5 but then tried to revert to what worked for Vista. jdk1.6 is not available from Oracle so I had to download 1.7 and hope. Downloaded the SDK which again got 23.0.2. So far so good.
Problem then was installer-r23.0.2-windows apparently is hardwired to find JDK at 'C:\Windows\system32\java.exe':[2]. I set the PATH to jdk1.7.0_65\bin and set JAVA_HOME environment variable to it also. Neither worked. Installer still choked on java8 in Windows\System32.
So I renamed C:\Windows\System32\java.exe to disable it and the installer-r23 found C:\Program Files\Java\jre8\bin\java.exe. The installer completed successfully. Why it didn't like the same file (V8.0.5.13) in Windows\System 32 is a mystery to me but maybe a clue to someone.
Still had to download API 8, but I thought I was operational on the 8.1 machine too.
Except for getting Eclipse to recognize my Motorola RazrM as a USB-attached device. That required going to the Win8.1 DeviceManager and updating the Mot Composite ADB Interface in ADB Interface. That required a download of the Motorola Device Manager. Still the phone did not appear in the Eclipse Devices View. It was waiting for a new confirmation on the phone that apparently has been added to the latest ADT. While I needed to upgrade the driver on my Samsung 10.1 tablet, it had not added the connection request confirmation.
Finally, the nightmares were over. My biggest problem appears to have been leaping to the latest versions - and then trying to regress when 23.0 broke. I think I learned a hard lesson. But, really, does it have to be this hard???
Hope this helps.
If Eclipse gives an error after uninstalling the ADT plugin from your Eclipse installation, try to edit file config.ini
in the Eclipse folder ? configuration. Find:
eclipse.application=
And change it to:
eclipse.application=org.eclipse.ui.ide.workbench
I hope it works for you too.
There are many possible answers to this question. I think it all depends on what your environment and installation procedure is. I'm running into the same issue as stated multiple times above. I cannot install ADT 23 because of a conflict dependency.
This is my environment:
I'm running Windows 7 64-bit with Eclipse 4.2.2. I installed ADT through menu Help ? Install New Software.
My solution:
Menu Help ? About Eclipse ? Uninstall ? ALL_ANDROID. Then I simply installed each of the ADT 23 tools through the "Install New Software".
Note: This is with the LATEST ADT release.
I was getting the same "conflicting dependency" error on Mac OS X 10.9.3 and simply upgrading was not an option. What finally worked was downloading the latest Eclipse ADT bundle zip file from developer.android.com, extracting it and moving only "eclipse" folder to the place where my old eclipse folder was. (extracting the Eclipse ADT bundle zip file will give you "eclipse" and "sdk" folders).
If you decide to go the same route, first make sure you know what your Workspace path is. This can be found in Preferences. Then rename your old "eclipse" directory (not Eclipse.app) to something like eclipse-22.6.3, then move extracted "eclipse" folder into its place. Run new Eclipse.app inside, and when it asks you about Workspace, just enter the same path as you noted above. Or it can also be set later in Preferences.
Maybe worth adding is that to re-enable Android SDK Manager and Android Virtual Device Manager choose Window -> Customize Perspective -> Command Groups Availability and select Android SDK and AVD Manager. This will add these 2 items to the "Window" menu item for the current perspective (Java).
I didn't move the extracted "sdk" folder, because I already had sdk folder in the same directory as eclipse, which I have already updated to the latest Android tools. But if it makes you feel safer, you can also rename your old sdk folder (for backup purposes) and move the freshly extracted one into its place.
I have followed instructions found here and tried to fix my old Eclipse + SDK + ADT, but with no luck. The basic problem keeps beeing the same; I still get the error message:
This Android SDK requires Android Developer Toolkit version 23.0.0 or above. Current version is 22.6.3.v201404151837-1123206. Please update ADT to the latest version.
But my eclipse can't find updates and can't install ADT 23 as new software. So I can't compile my old project in my workspace.
I tested a fresh eclipode bundle for Windows 8, followed instructions found from Android's developers page, step by step, and it worked fine. So it seems that the Windows Eclipse build is not broken. But I wan't use my Linux installation, my old Ubuntu 10. It seems obvious, that to getting the Linux Eclipse environment working again, I must install a new Eclipse bundle, my old Eclipse won't ever see updates for ADT 23 to get things working. Again, these intructions are for Linux developers that wan't to get their old workspace projects working again without changes in the developing environment, except you must install a new Eclipse bundle, but after that your projects will work as well as before the version 23 SDK/ADT-mess.
~/Development
and unzip bundle there. You get Eclipse and SDK directories.annotations.jar
from your old SDK, from, the backup you made, or from the older sdk.zip
explained in this thread to <new SDK>/tools/support/annotations.jarAfter that I could use my old workspace in Ubuntu and compile and launch applications to Android devices. It was that simple. Thanks Google ;-(
If you install a new Eclipse version it will work. Here's what I did:
After hours of struggling with this issue I finally decided to get rid of the update. I'm posting this just in case you want to go back to version 22.6.2:
Hope this helps
Solution, see: http://bazalabs.com/solution-for-the-update-problem-of-android-developer-toolkit-version-23-0-0-or-above/
This solution is the correct way of how you should change the files and keep your Eclipse ADT and not downloading a new one.
I found a solution for the problem with "conflicting dependency". I don't have the same page of Daniel Díaz's response, but a page show "conflicting dependency", and I can't make anything.
The problem is that I'm not the owner of the file. Eclipse was installed in other session (on OS X). I have the right to read and write the Eclipse file, but I'm not the owner. Make a "chown" command on all Eclipse files to solve the problem. After, I have the same result as Daniel Diaz.
I hope this helps someone.
NOTE: Use this approach with caution because this might break your Eclipse installation (see comments).
This might help you if you installed the ADT plugin manually. But if you are using the version of Eclipse from the Eclipse ADT Bundle the below steps could break your Eclipse installation, and you may not be able to use Eclipse again!
Go to
Menu Help ? About Eclipse SDK ? Installation Details.
Now you will see all 22.0
versions and then click Uninstall
button at bottom.
After uninstallation goto:
Menu Help ? Install New Software ? enter http://dl-ssl.google.com/android/eclipse/
Then install all the things, and now it is ready.
Only helped:
Download the ADT v23 plugin from Google and install it as local archive from the downloaded zip file in Eclipse.
http://developer.android.com/sdk/installing/installing-adt.html#Download
It works for me :)
If for some reason you installed an ADT preview and need to revert back to the current stable, you can't use the dialog to install "new" software since what you want is actually an older one. Instead do this:
Google has released ADT v23.0.2. This solved many problems of previous ADT version 23.
Step-by-step:
https://dl-ssl.google.com/android/eclipse
Note: When I installed the new version of ADT, I didn't include the new version of "Android Native Development Tools" package. Instead, I installed the rest of packages first, and then installed "Android Native Development Tools". For a reason, if I try to install all the new packages including "Android Native Development Tools", the installation fails.
If there is no "Remediation page", the only way to remove the ADT plugin from Eclipse is to go to menu Help ? About Eclipse ? Installation Details and uninstall from there. But there is a risk of uninstalling Eclipse itself.
I found these instructions in a comment.
Download the newest version of ADT and use your existing workspace. This is actually the least pain-full upgrade you'll ever do. It didn't mess with the .android folder so I still had my original debug key. Only things missing were a couple of add ons I hardly ever use and they are easily installed into the new version.
Note don't install into your existing adt folder create a new folder so you can still fall back if the new install doesn't work.
What I have just found is that you need to update your ADT plugin in your Eclipse (whether stand alone or ADT Bundle) before updating your build tool.
If your Eclipse installation points to the most recent Build Tool and your Eclipse is having ADT 22.x, it will show those errors.
What worked for me: (on Ubuntu 14.04 64-bit)
You may not have an older copy of Eclipse and Build tools, in that case you can uninstall latest build tool from SDK Manager and install the older copy.
Once everything starts working fine, do the above steps.
I am trying to upload older copies of such bundles somewhere on the Internet, will update the links here, once I am done uploading.
Source: Stackoverflow.com