Android SDK requires ADT version 23 or above - android

I was working on a project in Eclipse and unfortunately I removed some of my files and wasn't able to retrieve them back so I ended up creating a new project and importing my files back in. When this happened, I now receive an error:
When I try and update, it says it's already updated. I'm receiving multiple compilation errors in my project and am not sure what is going on since everything was working before I removed my files.
I see that it is telling me DDMS files are not found.. is this due to it not picking up my SDK? I tried to Help -> Install New Software and do a ADT but it seems I have already installed this since everything was working before.
Help on this issue on how to proceed/fix would be appreciated, thanks!

It seems that eclipse has edited or deleted files when updating
follow steps for updating eclipse
1. Download Eclipse from the official site
2. Download and install JDK latest version
3. After installing the eclipse, go to Help > Install New Software.
4. Click Add, in the top-right corner.
5. In the Add Repository dialog that appears, enter "ADT Plugin" for the
Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse/
Click OK.
6. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
7. In the next window, you'll see a list of the tools to be downloaded. Click Next.
8. Read and accept the license agreements, then click Finish.If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
9. When the installation completes, restart Eclipse.

Related

No target available in Android project

I installed my eclipse
when selecting target , It says no target available
When I tried to add location in preferences , it says ADT is not up to date
SO I updated it in help as well
there was no change
SO I selected : "Install new software" in help and then at the end of the process, it says
Cannot complete the install because of a conflicting dependency.
Software being installed: Android Hierarchy Viewer 23.0.7.2120684
How do i resolve this
Step to do -
1) Install latest packages from Android SDK (Main things required - Platform tools, Build Tools and latest platform(for example - Android API 23 Marshmallow))
2) Start Eclipse, then select Help > Install New Software.
3) Click Add, in the top-right corner.
4) In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:- https://dl-ssl.google.com/android/eclipse/
Note: The Android Developer Tools update site requires a secure connection. Make sure the update site URL you enter starts with HTTPS.
5) Click OK.
6) In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
7) In the next window, you'll see a list of the tools to be downloaded. Click Next.
8) Read and accept the license agreements, then click Finish.
If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
9) When the installation completes, restart Eclipse.
If the above doesn't work, get help from http://developer.android.com/sdk/installing/installing-adt.html
PS - Try using Android Studio. Also, if you like this answer, please mark it as selected.
If you're using Android Studio, restart the program > in the project menu, where you can for example start a new, or import a project, choose configurations > SDK manager.
Here should be everything you need for downloading the proper build tools for your project.
As it shows that there is a "conflicting dependency. Software being installed: Android Hierarchy Viewer 23.0.7.2120684". Then read the rest of the details about the problem, and search if it suggests any older version of the same file is already installed or not. In case of a conflict,
Go to BACK where you selected the ADT previously
select already installed
uninstall the old version of those files of which the new versions are offered in new ADT version
(i.e.: I was offered Hierarchy Viewer version 23, so i uninstalled Hierarchy Viewer version 17 and other items of older version 17 from "Already installed" link).
Picture showed in the link -> 1 & 2
N.B.: You can compare the offered version and installed version as the picture showed in the link -> 3
after uninstalling all the old version items which cause confliction with new ones, close the "Already installed" window and hit the NEXT button and see if it still suggests any confliction. Which means you missed to uninstall any item of any older version of same file.
In that case compare again and follow the same procedure and go ahead.
Hope you will find your desired solution by following these steps. Thank you.

Errors after updating sdk with Eclipse

Well i've decided to update the sdk using sdk manager. I've updating at the last android M preview API. After that, i re opened Eclipse and all my projects had errors!! The appcompat library returns in the console this:
android-support-v7-appcompat] /android-support-v7-appcompat/gen already exists but is not a source folder. Convert to a source folder or rename it.
I really don't know what it means! But i can't work now!
the problem is in the ADT you must update it to a version above 23... it seems that they (Android guys) are making our life harder, they want us to migrate to their tool (Android studio)
you can follow those steps:
first of all download the ADT Plugin zip file and do not unpack it.
then, Start Eclipse, and select Help > Install New Software.
Click on " Add ", in the top-right corner and in the Add Repository dialog, click on " Archive ".
you must select the downloaded ADT-23.x.x.x.zip file (the_latest_one_available) and click OK.
After that enter "ADT Plugin" for the name and click OK. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
Then in the next window, you'll see a list of the tools to be downloaded. So you will click Next.
Accept the license agreements (no one read it :-) ), then click Finish.
Note that if you get a security warning saying that the authenticity or validity of the software can't be established don't care about that, just click OK.
After completition, restart Eclipse and Voila, it must be done.... I hope so...
i will post another answer and not editing the first one because it's another different approach: you can Undo update your sdk for this you can:
Download the older ADT plugin manually (the one who was working fine, don't forget to check if you haven't it already in your downloads folder). Then copy the tools folder from there and replace the tools folder in your SDK installation directory.
Your SDK will be back to the older working version.

Error Message : This Android SDK requires Android Developer Toolkit version 22.6.1 or above

Recently I've encountered following error :
The strangest thing is that I've just updated some package from sdk via working eclipse. There was no information or warning that after this update current adt will crash. I've checked latest updates and can't find new adt even on google's page. Even new adb contain old adt.
From http://developer.android.com/tools/sdk/tools-notes.html:
Dependencies: Android SDK Platform-tools revision 18 or later. If you
are developing in Eclipse with ADT, note that this version of SDK
Tools is designed for use with ADT 22.6.1 and later. If you haven't
already, update your ADT Plugin to 22.6.1.
The only solution is to download new standalone eclipse and external plugin for it?
Does the android studio face the same problems?
Environment: linux x64.
Today me and one of my friends faced the same problem, so I have tried many things like restarting eclipse, checking updates, etc. but none was working for me.
Then I found a solution from Here and it's working as a charm for me and also for my friend.
Follow the steps here:
Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the
Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK.
If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to
Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded.
Click Next. Read and accept the license agreements, then click
Finish.
If you get a security warning saying that the authenticity or
validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
I reported this bug yesterday. Solution is to use Help -> Install new software option with httpS:// protocol (s is important). No special downloads or re-installations is needed, just choose the right update site.
The problem is that the default update site in Android ADT is
http://dl-ssl.google.com/android/eclipse/
but this site don't update correctly
And the solution is add a new Install site with protocol https
https://dl-ssl.google.com/android/eclipse/
Click in Help->Install New Software->Add
And use this site to update ADT
Issue : https://code.google.com/p/android/issues/detail?id=67325
To solve this problem, here I have covered steps, surely it will help you.
Please follow these steps:
Help | Install new software
Select the ADT update site (there are two, one with http:// and one with https:// If one doesn't work, try the other.
Select the developer tools section and press next.
You should see a dialog that says "this software is already installed, an update will be performed instead". Clicking ok will lead to 22.6.1 being installed.
Update 27/03/2014
They released 22.6.2 and fixed this issue so update your ADT to new version.
You can see this thread : Cannot update from ADT 22.3.0. to 22.6.1
You can go to Window->Android SDK Manager and check tha what version you have.
In my case it shows I already have toolkit 22.6.1 installed but still get the error. Whether you already have it or not, you can do the following to fix.
Go to Help->Install New Software... In the dialog shown below, click on 'Add' button on the top right side.
Paste "https://dl-ssl.google.com/android/eclipse/" in Location. You can name it anything.
Click Ok and follow the dialog by clicking Next.
If prompted with a message sasying you already have it, just agree so that it gets updated (or installed if it wasn't there).
This should resolve the issue.
source : http://codewriterstips.blogspot.nl
if your android sdk is to old . you must download new android sdk in developer.android.com and , copy past some nececary folder on it .

Error: This Android SDK requires Android Developer Toolkit version 22.6.1 or above

I have installed adt version 22.6.1 already 2 days ago. It was working fine. Suddenly, When I open eclipse today, it keeps showing me following error:
This Android SDK requires Android Developer Toolkit version 22.6.1 or above. Current version is 22.2.1.v201309180102-833290. Please update ADT to the latest version.
Here is screenshot of my eclipse's Android SDK Manager :
I tried with following steps to resolve my issue as discussed in this Link
Help | Install new software
Select the ADT update site (there are two, one with http:// and one with https://. If one doesn't work, try the other.
Select the developer tools section and press next.
You should see a dialog that says This software is already installed, an update will be performed instead. Clicking OK will lead to 22.6.1 being installed.
But unfortunately it didn't work for me.
Here is a screenshot I am attaching which shows the error I am getting while updating the tools.
How can I get rid of it?
I have solved this issue yesterday.
Follow the steps :
Help -> Install New Software -> Add -> (Give any name suppose NewUpdate) -> add this url : https://dl-ssl.google.com/eclipse/plugin/4.2 -> OK
Now it will list the available updates, which should ideally be adt 20.x.x
Select the list items Let it be installed. Eclipse will restart and Its done.
I hope this will helpful for you :)
Yet, if someone is facing this issue, Then follow steps below:
download new stand alone SDK from android's developer site
Close eclipse if it is opened and copy new downloaded sdk in the same location where your already existing old sdk is. Must replace conflict files and keep rest.
No need to delete old sdk. Copying as in step 2 will update your Android Developer Toolkit version to 22.6.1 or above which is required and will keep already downloaded APIs.
Now start your eclipse, and the error will be gone forever. :)
if someone will have trouble doing so, leave me a comment, will try to guide.
I managed to resolve it by doing the following:
Downloaded latest ADT (Win x64)
Deleted my old ADT install (It got bugged when I simply tried to overwrite the existing files) - see this google issue
Copied the zip file to C:\ (since it was complaining about too long filenames while unpacking)
Unpacked to my ADT install folder.
Ran updates and SDK manager updates.
Now it's working, but I lost my pretty Eclipse theme. Oh, and the target adt is not being resolved, a problem for another topic.
Just delete the existing ADT and install new version of ADT.generally this problems occurs
when you update SDK using below link.
https://dl-ssl.google.com/android/eclipse/
The ADT Bundle on developer.android.com seems to me as out of date.
I fixed the same problem by downloading eclipse (Java EE was my choice, but you can choose your flavor) and Installing the Eclipse Plugin
this steps solve my problem:
go to Help -> Install New Software.
in the bottom box, click What is already installed? text.
then you will see Eclipse Installation Details box, please Uninstall all conflicts software, in my case I uninstall the following software:
Android DDMS
Android Development Tools
Android Hierarchy Viewer
Android Native Development
Android Traceview
Tracer for OpenGL ES
when uninstall complete, please restart your Eclipse.
after your Eclipse open, please follow again these steps:
go to Help -> Install New Software.
in Work with box, select or add {ADT Plugin - https://dl-ssl.google.com/android/eclipse}.
then check all available software.
click Next > to install newest software.
I hope this helps you :)
I use OSX and facing the problem for 2 days.
I solved the problem by following the steps below:
-Download ADT Bundle from https://developer.android.com/sdk/index.html
-Help -> Install New Software
-Write https://dl-ssl.google.com/android/eclipse/ then install Developer tools
-Restart eclipse and raised the error below:
Android SDK content Loader has encountered a problem.parseSdkContent failed
java.lang.NullPointeException
-Delete .android folder under user profile. Restart eclipse
No errors and 22.6.1 is installed.
For those who tried everything but didn't get any positive result. I did the following and it worked:
Uninstall the ADT by helping from following link:
Uninstalling Android ADT
Now you can follow the install new software to add ADT to your eclipse. This way you won't get any conflict since you uninstalled old version.
I currently have Eclipse and ADT installed in the same directory as
F:\eclipse
\eclipse\
\sdk\
I downloaded and installed the latest ADT to
C:\Users\Rick\AppData\Local\Android\android-sdk
I then copied the contents of the C:\Users\Rick\AppData\Local\Android\android-sdk into the F:\eclipse\sdk\ folder, and let it merge all folders and overwrite everything.
Now I have 22.6.1 and I don't have to re-download all the platform stuff again.
Today me and one of my friends faced the same problem, so I have tried many things like restarting eclipse, checking updates, etc. but none was working for me.
Then I found a solution from Here and it's working as a charm for me and also for my friend.
Follow the steps here:
Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for
the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK.
If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to
Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded.
Click Next. Read and accept the license agreements, then click
Finish.
If you get a security warning saying that the authenticity or
validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
The "Install new Software" under help in Eclipse will NOT work because it conflicts with ver#22.
I just downloaded the new Eclipse bundle from:
Get the Android SDK - google site, extracted it in a new folder ant it is done.
It is working smoothly, no problems.
Few tips to save you time:
Backup your workspace (just in case) - personally didn't use this back.
Once you open the new eclipse.exe it will ask you to select a workspace - just brows to your ols workspace and it will import all your projects (no problems).
In order to save time of download and install of the SDK again, I Cut & Paste the OLD SDK library from the previous bundle directory to the new one (Close your new Eclipse first).
When you re-open Eclipse, you may receive an error message saying that Eclipse can't find the SDK directory. It will ask you to open "Preferences". Once open, browse to the new SDK directory (the one that you just copied). Doing this will save you hours of re-installing all the SDK updates that you did on the previous Eclipse.
Have fun, it is really not a big deal.

ADT 21 update not recognized by Eclipse

I just updated my ADT plugin for Ecipse to v21 but after a restart it is not working.
Somehow the plugin's are version 21.0.0.v201210310015-519525, but the SDK verification is telling me that I am on v20.2.v201207191942-407447 and forcing me to update.
I've tried removing the plugin but that's not possible trough the help > about > Installation details. Reverting back to older installations let me reinstall the update but with the same result.
Im using Eclipse Juno 20120614-1722
can anyone point me in the direction to fix this?
UPDATE:
As it turned out, Windows 7 UAC was at play here. I thought i was running eclipse as admin, but i wasn't. What the strange part is, is that Eclipse tried to install the updates but fails without ever mentioning that it does not have the right to changes files without administrative rights. the next time you boot up, the installation thinks its updated but the files are not.
Solution:
Run in Administrator mode (by setting it as standard in your shortcut
or turn UAC off)
Roll back to a previous installation (Help > About
Eclipse > Installation Details > Installation History > (select
previous installation) Revert )
Reboot Eclipse (be sure to have Administrator rights)
Update without a problem :)
you have to update the eclipse so that it support the latest ADT.
To do this you have to select Help->Install New Software and then work with this link
update site: https://dl-ssl.google.com/android/eclipse/.
After that update Developer Tools.
As it turned out, Windows 7 UAC was at play here. I thought i was running eclipse as admin, but i wasn't. What the strange part is, is that Eclipse tried to install the updates but fails without ever mentioning that it does not have the right to changes files without administrative rights. the next time you boot up, the installation thinks its updated but the files are not.
Solution:
Run in Administrator mode (by setting it as standard in your shortcut or turn UAC off)
Roll back to a previous installation (Help > About Eclipse > Installation Details > Installation History > (select previous installation) Revert )
Reboot Eclipse (be sure to have Administrator rights)
Update without a problem :)
As Kevin Grant said. I update the component one by one, and it works for me.
My eclipse is Juno Version: 4.2.1 Build id: M20120914-1800 installed with Fedora 17.
I notice that I can't see the adt in "Installed Software" tab in "Installation Details". I have to believe it's juno's fault. Because I already upgrade adt for eclipse in other workstation running eclipse indigo.
I ran into the same problem. I did quite a few things as you suggested, deleted folders from plugins / metadata / features, none seemed to work. I googled how to uninstall ADT, and in the same place you uninstall it, theres a button to update it.
Uninstalling Android ADT
Just select anything that isn't tools 21 and update it individually. Worked for me (I started with updating ADT)
The following answer here worked for me on several machines that had this issue and does not require uninstalling or any other monkey business.
"go to the SDK Manager and going to FILE -> RELOAD solved the problem"
Got the same problem after update on SDK Manager v21.0 to v21.1. I had tried the suggested solution but didn't work for me. But I found a quick solution from developer.android website itself, I followed the "Troubleshooting Installation" part which you can find here.
for a quick preview of solution:
1. Download the ADT Plugin zip file (do not unpack it).
2. Start Eclipse, then select Help > Install New Software.
3. Click Add, in the top-right corner.
4. In the Add Repository dialog, click Archive.
5. Select the downloaded ADT-21.1.0.zip file and click OK.
6. Enter "ADT Plugin" for the name and click OK.
7. In the Available Software dialog, select the checkbox next to Developer Tools and click Next. (I add, also check the NDK)
8. In the next window, you'll see a list of the tools to be downloaded. Click Next.
9. Read and accept the license agreements, then click Finish.
If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.

Categories

Resources