I have 2 questions ,
I updated the android sdk and now the eclipse gives me this error at the startup. The error message is displayed below.
I clicked the check for updates button but there are no updates available now.
How to fix this problem?
second question is when a new project is created I can't choose sdk version for "Compile with" as it doesn't provide any choices.
as you can see on the above pic next and finish buttons are also disabled. So now I can't create a new project at all.
Is this because I updated the sdk version? (causes both problems)
I need help to fix both problems.
Thanks.
Update to the latest ADT Plugin. the current adt version is 22.0.1. See here to know how to update ADT.
Ive gotten that same error in the past - it tells me i need to update, yet no updates were available. Simply click the option underneath Check for updates, i believe it says Install New Software. Then choose the Android site from the list. Then you should be able to choose the available updates and install them. As for not being able to create a new project, im guessing thats either because you need to update, as you mentioned, OR, you need to download the sdk platform via the sdk manager. Hope this helps.
Related
Been away from eclipse and Android for three months, came back to get back into it.
Tried to install two new updates to the SDK (v16 of one thing, v20 of another), which of course failed because I forgot to run eclipse as Administrator, so I got the 'folder failed to be moved' error.
Fine, do it again, seems to finish. Reminds at the end to check eclipse/help/'check for updates', so I did, and let it run while I had dinner.
Now, I'm ready to jump back in.
When I open eclipse, I get the pop-up "This Android SDK requires Android Development Toolkit version 20.0 or above. Current version is 16.0.1.201112150204-238534. Please update ADT to the latest version."
Clicking eclipse / window / Android SDK Manager (where I originally found and authorized these updates), I now get "Location of the Android SDK has not been setup in preferences"
I get the same error as in #2 when I click on AVD Manager on the same menu.
In reviewing some answers here, I got to the "reinstall eclipse" suggestion and decided to write this up and see if a more rational explanation / solution might be forthcoming.
Thanks
Update ADT to a newer version and setup SDK location again. This should be solve your problem.(I'm sorry my answer is most likely a comment, but unfortunately I can't make comments still)
As I feared, I'd read the error msg wrong. Since the SDK manager was telling me the 'Tools' were at 22.0.xxx, I was reading this as the 'Tools' in ADT 'Android Development Tools.' It's not. Went back to the SDK web page from the SDK Read Me.txt, and from that page to the ADT Plugin page, which then led to the 'Installing the eclipse plugin'. Only difference in following those steps was that I didn't have to 'Add' ("Error: duplicate location") because the location to get the plugin was already in the dropdown for 'Work with:'.
COMMENT: Why does this have to be a separate update? Hasn't anyone looked at the SDK Manager's 'Update SDK' process, disconnected from the eclipse ADT plugin update, and thought 'Jeez, won't that create incompatabilities/confusion/difficulties among developers and prospective developers?' I'm not that level of developer in this environment (yet) but c'mon, gang, no one knows how to link the SDK update to a follow-on script to start the ADT eclipse plugin update dialog?
I just updated my Android SDK Tools to version 21.1. Unfortunately this is causing an error when I load the Android Developer Toolkit:
The Android SDK requires Android Developer Toolkit version 21.1.0 or above.
Current version is 21.0.1.2012-12-6-2-58.
Please update ADT to the latest version.
When I upgraded the SDK I was warned that I might need to upgrade ADT. I tried to do so by going to Help > Check for Updates. Unfortunately this returns a message that "No updates were found."
In case I've missed something here's a screenshot of my Android SDK Manager:
Am I missing an install package? Do I need to go about updating ADT (Eclipse) another way? Should I just download a new copy of ADT?
For some reason ADT (Eclipse) won't pick up on the fact that it does in fact need to be updated. Since the built in tools for updating are failing you you'll have to work around them. On the Help menu instead of selecting Check for Updates instead pick Install New Software (so Help > Install New Software).
On the Available Software screen in the Work With dropdown provide:https://dl-ssl.google.com/android/eclipse/ if it's not already available. You should see a list of options including Developer Tools. Check everything that you want to update. In the list of checkboxes below uncheck "Contact all update sites during install to find required software."
Click Next and follow the remaining onscreen prompts. You may be warned that instead of an install an update will be performed. This is okay. Once the operation is complete you will no longer receive the "The Android SDK requires Android Developer Toolkit verxion 21.1.0 or above" error when you load ADT.
Yesterday i updated my android sdk to api 17. Now the launching of eclipse is showing error (image 1)
I tried to check for updates but its not allowing.
I also have my android sdk path mentioned in preference but then also it says that "Android SDK path not mentioned in prefrence"
And when I try running any application it shows (image2)
When I am trying to update my adt 20 to 21 then also there is a error (image 3)
Please help me. Because of this I am not able to proceed ahead.
As it says your current ADT plugin is 20.0.3. And you require Version 21.x.x for API level 17.
So, to fix this, open eclipse->help->install new software and then select ADT plugin. it will display the latest ADT version. click next and continue.
To configure SDK, go to Windows>>Preferences>>Android and put your SDK location Sample location would be C:\Android\android-sdk-windows
I suppose that would solve your issue
If you already have SDK installed then please update SDK
go to Help>>Check for updates
I think the easiest solution would be just to remove your SDK and then redownload the bundle.
I have recently updated my ADT and it is now ADT_V20. I have also updated my SDK platform tools as well. But I am not able to create new Project through Project wizard from Eclipse.
I have Eclipse Helios latest version. and It was working well with old ADT versions.
In the project wizard I have reached upto Install Dependencies screen, where "Next" and "Finish" buttons are disabled. I have tried to "Install/Upgrade" new version as shown in the wizard and that process is completed successfully . Still I am not getting "Next" or "Finish" buttons enabled.
This same thing happens on the other PCs as well.
Could anybody please help me ?
Thanks
Looks like you can get around this issue by uninstalling the Support library from the SDK manager, then reinstalling at the prompt in the wizard. I had the same problem you did, and this solution worked for me.
Source: http://code.google.com/p/android/issues/detail?id=33859
In the new Android Project Wizard on the second screen where is says "Select whether to create an activity, and if so, what kind of activity"
Simple un-check the Create Activity, A new Blank Activity will be enabled to be created. -
Click Finish.
They might push a fix for the issue you have highlighted soon.
I have come across some more issues related to Ant build.xml not able to find "com.android.ant.NewSetupTask" due to this upgrade to ADT20
After installing ADT version 20, I have this problem creating a 1.6/API 8 project now that the newer (version 20) SDK is installed.
Would one of the experts try creating this even WITHOUT the 'activity' please?
I cannot complete with the blank activity checked (due to the missing API 8, which tries to install the already installed API 9 when asked to update), NOR can I complete with NO activity selected.
In the latter case, i.e., uncheck the create Activity box, the Finish button appears, creates the project partially, but not one that will build (as the older versions would do even with an old API.
Also, there is no actual indication that the "Finish" has worked -- you must look over in the browse pane to see the new project even though the dialog remains.
If any of the above did n't solved your problem please do one thing, try DELETING org.apache.log4j_1.2.17.jar from eclipse/plugin directory !!!!
In MACOSX, with Eclipse Helios IDE, this solution didn't work for me. I solved the problem uninstalling the components by the SDK tools and installing them again by the same SDK manager. I tried to reinstall the components by the same new project dialog, but didn't work for me, my only solution was that, uninstalling and reinstalling from sdk manager.
I hope this solution works for you :)
My solution is that I found out that Android Support Library was not installed on my computer (I didn't even have an Android folder under extras/. I ran the SDK Manager as Administrator, selected this and installed it. Then I tried creating a new project and I got the same error. I clicked Install/Upgrade and the Finish button became enabled. The next time I created a new project, I didn't get this error.
In my case the app had been created, but I didn't see it as it was completely obsqured by the welcome splash screen. When I didn't see it, I tried to create the app again, and it was failing to finish silently. Only when I ventured to close the splash screen did all become clear.
I'm developing for Android with Eclipse, and all was working well until yesterday. I used Ninite to update all my stuff, including JREs and everything (pro tip: do not do that), and it restarted my computer without asking in the middle of editing my workspace.
This caused all kinds of filthy problems, but now it all works, except for Android. I've updated Android SDK and the eclipse ADT, then when I try to tell Eclipse the SDK location, it gives this error:
This Android SDK requires Android Developer Toolkit version 14.0.0 or
above. Current version is 12.0.0.v201106281929-138431. Please update
ADT to the latest version.
Now, this is an outright lie. My ADT is version 14.0.something. I've tried Help>Check for updates, it says there are no updates. I've tried Help>Install new software...>Available Software Sites and removing the ADT repo, then reinstalling ADT, and it says it failed because I already have version 14.0.whatever.
How do I convince eclipse that my ADT is up to date??
I found the answer to the problem. (I'm using Helios, but it should work anyway)
Goto folder /Program Files(x86)/Eclipse/Plugins/ and make sure previous older versions of com.android.ide.eclipse.adt.package_##... are deleted (sometimes update fails to delete because of UAC). Keep the current desired version and complete the following.
Run Eclipse as administrator or disable UAC temporarily. (windows 7)
Go to Help → Install New Software.
On Work with: type https://dl-ssl.google.com/android/eclipse/ and press ENTER.
Wait for Eclipse to fetch the repository. An item named Developer tools will appear in the list.
Mark it for install, press Next and follow the steps to install the ADT tools.
When finished, it will ask to restart Eclipse. Make sure you do this.
When Eclipse restarts, all your Android SDK packages should show up again.
Dont forget to resume UAC if you need it.
An option is to manually download the ADT plugin (ADT archive) required. The page is, http://developer.android.com/sdk/eclipse-adt.html. The page reveals ADT 18 is available at http://dl.google.com/android/ADT-18.0.0.zip. The link is closer to the bottom page. I needed 17 although 18 was the latest, so I modified the download URL, changing 18 to 17.
Select Help → Install New Software → Add → Choose Archive and select the location of the downloaded ADT archieve file, Choose OK.
Select the components required and proceed as required. You may get a message that the software is already installed, proceed with the installation.
Hope this helps.
I had the same problem. My ADT in the eclipse was 8.x version. But my app required version 12 or more. So, I decided to upgrade both the Android SDK and ADT to the latest (at this time latest ADT is 17). I was able to upgrade the SDK but not the ADT. It always complained I got the versions already but I only had 8.x. The new SDK that I just upgraded would function only with ADT 14 and above. So, I had successfully broken my android development!!
The reason why I wasn't able to upgrade my ADT to the latest was because I was using Eclipse 3.5. The newer ADT versions require 3.6 or above. This small but key bit of information was really at the bottom of the error generated by Eclipse which required scrolling down (since only the top few lines of error were displayed). You typically wouldn't scroll down since these top few lines were followed by whitespace lines :). I did not scroll and I guess I wasted about a day trying to rectify this problem. But eventually I saw those 2 up/down arrows at the right of the dialog box and I scrolled down. There it clearly mentioned ADT 17 requires Eclipse runtime 3.6 and over.
So my solution was to find a suitable ADT that would work with Eclipse 3.5. Yes, tomorrow when I am in the mood, I shall upgrade to Eclipse 3.6 or 3.7 and the boat load of plugins I have :)
I've just upgraded my Android SDK version, and had exactly the same issue.
The 'Check For updates' Eclipse command failed because, for some reasons, Android Traceview failed to update.
My solution was to :
* Open Eclipse → Help → About Eclipse .
* Click Installation Details.
* Here select all the android related lines, and update them one by one, restarting eclipse each time.
And finally it worked ( even with Helios ) !
Best option is go to open eclipse ID
Then go to Help → About Eclipse >>
u will find the Installation Details button click on that
And now u can see the all anriod extension installed.
Select all or select one by one and just click the update button.
you will get the latest version from the net.
Hope these will help you all.
In Eclipse:
Help → Check for Updates.
Your ADT and SDK is not up-to-date yet and Eclipse is complaining about the right stuff...
Open Android SDK Manager from toolbar and update your SDK from there. It doesn't help if you are checking Eclipse updates. Because through Eclipse you cannot check SDK updates for Android.
Button looks like this :
I'm hearing a common issue is that newer Android ADK versions require newer eclipse versions. Colleagues who hit this say they installed Indigo in place of older Helios versions and were able to resolve the issue this way. I have not yet done the same myself.
To anyone else with this problem, my solution was just to delete the Eclipse folder, and download a new copy from scratch. I had to then re-download all plugins including adt, which worked this time round.