Error while loading eclipse (Not able to run any android application) - android

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.

Related

Can't create activity through wizard with new Android SDK tools v23

Today I updated Android SDK Tools to version 23, Android SDK platform-tools to version 20 and ADT Plugin. Everything works fine except one - I can't create an activity via wizard in any project. I point out all the necessary parameters, click "Finish" and nothing happens. Does anyone have the same issue? And maybe some of you already know how to solve it. Or should I just wait for an update from Google?
From Google on June 27:
Please wait for an updated version within a day or two. Until then, your workaround is to do download one of:
See the following for the full answer and suggestions:
https://code.google.com/p/android/issues/detail?id=72419
They say when you have opened the links provided in the answer, then copy over the following files:
tools/hprof-conv
tools/support/annotations.jar
tools/proguard

Getting errors after updating to the latest android sdk in eclipse

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.

My ADT Plugin is updated , but eclipse doesn't recognize it

I have updated the Android SDK and I have installed API 17. I also updated the ADT Plugin to 21.1.0. However I'm facing a problem : when I open eclipse a message keeps appearing :
The Android SDK requires Android Developer Toolkit version 21.1.0 or
above. Current version is : 21.0.1.v201....(& another numbers..).
Please update ADT to the latest version.
I click Check for updates --> Then appears a message :No updates found
And another message appear: No repository found at jar:file:/C:(...)/ADT-21.1.0.zip!/.
I cannot start the avd because all the applications have errors.
I also tried to install it manually by downloading the zip file ADT-21.1.0 -> Help -> Install New Software... -> Add -> Archive....(this is the way that I updated the Plugin in the first place) , but it says that everything is updated !!
Any ideas? Thanks.
I do not know the reason but the following helped me in the same situation.
Go to Help -> Install New Software
Use (add if not exist) Android Developer Tools Update Site (http://dl-ssl.google.com/android/eclipse/)
Uncheck "Contact all update sites during install to find required software" option
I had this problem before - Solved it by using an updated Eclipse with a new installation of the ADT (installing it like Serkan has suggested, instead of using the Marketplace).
https://dl-ssl.google.com/android/eclipse/
The Site is https not http. So make the necessary change, it should work
The problem is it is looking for an update repository which does not exist on your c drive.
It got stuck on c because you loaded a zip.
fix by going to help software install then click available software sites and remove your local drives.

How to install older Android SDK in Eclipse

I'm working at the moment at a simple app in eclipse for android. Just receiving and sending data, and using the camera API.
I've set the minSDKversion to 8, because I think that has the widest user base. But at the beginning of the project eclipse was asking me which target SDK version I would use, and because I had just one installed (the latest 4.0.3) I've took this.
Now I'm asking me if it wouldn't be wiser to install a lower SDK, like Android 2.2, because it would be not that big (compared to the 4.0.3) and my app would not have included all the fancy new features, which are not used in any way?! Or is this complete nonsense I'm talking here, and just should take my 4.0.3 SDK? When not, how can I install a lower version? Help -> SDK Manager is not showing old SDKs...
Here is a very helpful link that will probably answer your question: http://developer.android.com/sdk/installing/adding-packages.html
Basically, open up the Android SDK manager and it should give you a list of packages that you can install! From there you can choose old SDKs!
hey i faced the same issue as yours
usually while updating due to this error , it is unable to fetch the older SDKs
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list.xml, reason: File not found
This is how you can fix it :
1) Go to Window > AndroidSDK Manager
2) select tools> options
3) set the proxy (if u r sitting behind proxy)
4) in checkboxes check Obsolete option (in Android SDK Manager)
5) go to Packages > reload (in Android SDK Manager)
This worked for me
In case you are using windows7 .
Go to Android SDK Manager location > right click > Run as Administrator
Best Regards,
Ashwani kumar
I was having a problem with this also. I tried all of the things listed in the other answers here and nothing worked. I went into Tools/Options (in the Android SDK Manager) and checked "Force https:// sources to be fetched using http://" and reloaded and the older APIs magically appeared.
if u want minSDKversion from its maxSDKversion
1.select maxSDKversion and delete all old pakages .
2. after doing it sdk manager will show all its older versions .
3. select required version and install all packages again.
:) :)
it worked for me .. just try .

Eclipse: won't let me use Android SDK, wrongly claims my ADT is out of date

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.

Categories

Resources