Android SDKs don't show up - android

I went through all the steps on the android dev site, installed all the SDKs, and when I start a new android project or go to android preferences the list that's supposed to show the SDKs is empty. I have the SDK location pointed to /android-sdk-mac_x86 and it looks like every things there. Am I missing a step maybe?

Try doing a fresh install. This should fix your problem. Sometimes eclipse will bug out and create problems.
Doing a fresh install usually solves this problem for me and people i know.

When you install the SDK you need to open the SDK Manager and download all the version you want to work with.. by default it doesn't include any.

I think the problem is due to the fact that you didn't install the Eclipse ADT.
The SDK is one thing (and it is not linked to Eclipse), you have then to link the SDK to Eclipse.
Quite easy and very well explained here:
http://developer.android.com/sdk/eclipse-adt.html
I hope this helps.

it is the problem we face many time in eclipse.
to solve this problem you need to Clear your cache and reload.
just follow below given step
open AVD manager
The clear-cache button is in Tools > Options.
and reloading is Packages > Reload in the SDK Manager.
also seled first check box in other category which force https insteam of http.
restart AVD and Eclipse

Related

"SDK tools directory is missing" when launching Android Studio on my mac

It shows that I've already installed the Android SDK but I can't find it.:<
Tried in terminal to see what's in the folder but find nothing, this location is empty. Why the app tell me that I've installed it? How can I solve this problem? Thank you!!
I would say that you reinstall Android Studio after checking the SDK Manager at first. The SDK Path may also be corrupted, so check that.
For me it was two issues, proxy settings although tested okay was not connecting to display the list of available SDKs. Also launching Android Studio using "Run as administrator" was also required.
I had exactly the same issue and I came across this post but then before implementing the suggested solutions, I decided to first restart my AndroidStudio, on restart it gave me the option to download SDK and after that, it worked perfectly well.
I have fixed it by downloading the Android SDK from IntelliJ rather than Android Studio.
Then restart Android Studio, It detects the installed version.

ADT needs to update but find no update

Today I installed API8 from the SDK manager, previously I only had been working with API14. After the SDK manager was done, and upon restarting ADT I got this error:
This android SDK requires Android Developer Toolkit version 21.1.0
and above. Current version is 21.0.1.2012-12-6-2-58.
So I click to find updates but I get "no updates found".
I did the following:
Used the SDK manager to re-install android SDK tools (rev 21.1).
Used the SDK manager to re-install API8 and API14.
Still no go :(
I had the same issue. Please try the following in eclipse
Help --> Install new software
Then choose "Android Developer Tools Update Site - http://dl-ssl.google.com/android/eclipse/" from the drop down list and update the ADT
IF THIS THROWS ERROR Like this
No repository found containing: osgi.bundle,com.android.ide.eclipse.adt,21.1.0.v201302060044-569685
Modify http: to https:
Sample : https://dl-ssl.google.com/android/eclipse/
And then update ADT. This method worked for me.
You get that issue when your eclipse ADT plugin version doesn't match your SDK tools version.
Have you tried updating the ADT plugin in eclipse?
Help -> Install New Software and then using the ADT update site should work.
If you get a No Respository Found error using this site, you should use the HTTPS version instead.
If you're still having trouble getting it to install, you can download the zip standalone and manually install it. You can find the latest zip and installation instructions at the ADT troubleshooting page.
If problem in "http".
1) Help --> "Install new software" --> "Available Software Sites"
2) Click on "Android Developer Tools Update Site"
3) Click "Edit"
4) Mofify "http" to "https"
5) Click "Ok" --> "Ok"
6) Try update again.
I tried all methods mentioned here, but still without success.
What finally helped was the tip from No repository found error in Installing ADT in eclipse Indigo:
Uncheck “Contact all update sites during install to find required software”
you Should Update your ADT to Latest Version by below way.
Eclipse--> Go to Help--> Install New Software --> Add--> Inside Add Repository
Write Name="ADT"(as you want) and
Location="https://dl-ssl.google.com/android/eclipse/" --> after
loading some times you will get Developer Tools & NDK Plugins-->
checked both if you want to install Use NDK as future Use or checked
only developer Tool--> click Next--> Finish.
After this you can Update your SDK to latest Version.
Hope it will Help.
Got this one too, going from ADT 22.3 to 23.
Not sure what's keeping Eclipse from finding the updates (maybe some IDs changed or something), but the solution is to install the ADT plugins over the existing ones using Help -> Install New Software, just select the same site, no need to correct the URL from https to http or vice versa. The wizard will tell you there are a bunch of conflicts that'll result in removing the old versions of the plugins -- that's ok, go for it.
UPD Seemingly, (as at least one person downvoted the answer), installing new version over old one forcefully doesn't work for everyone. Here's the related bug where it's said that the old installation of Exclipse/ADT is hopelessly unupdatable and one should just download the new bundle to resolve this.
PS Anyway, you should be using Android Studio by now. Compared to Eclipse, it's a memory hog and has a very different feel to it and different hotkeys, but (as much as I hate to say it having been a snuggled up Eclipse user for a long time) it's way better, at least for Android development.
Same issue here, but luckily it is resolved now. The help->install new software and the android tool manager didn't help.
I re-downloaded the ADT bundle and simply copied over the failing installation, it works now.
I had the very same problem last weekend. Go to Help->Install new Software. Here use Android Developer Tools Update Site url - http://dl-ssl.google.com/android/eclipse/, two options should appear and I can't remember which one to choose ;) (It should be the one with DEV)
I don't think it is necessary but before I removed and downloaded the whole Eclipse with ADT. But it should not be necessary.

Why doesn't Android appear in Eclipses' preferences?

I've installed the Android Developer tools as per the official instructions.
Why doesn't the tab appear in Windows->Preferences, as they said it should?
Remove the plugin, then restart as follows:
eclipse -clean
Now try reinstalling the ADT from the online installation
OR
Head over to Help -> Install New Software. Click on Available software sites. Delete the Android repo. Uncheck Indigo & Eclipse updates & recheck them. Now head back to Help -> Check for updates. Once done, add the Android repo again. Accept the license & you should be good to go.
Happy Coding..
This won't fix your issue directly, but I suggest your take a look at the MOTODEV STUDIO for Android. Essentially, it's a customized Eclipse IDE with all the Android tools preinstalled and many more of their own tools for app validation. I find their tools usefull, especially the code snippets and the app validator. I believe you will need to register to download, but it's a quick and free process and you can always use a temporary email service. Anyway, this should allow you to get up and running until you find your bug (even if I don't see why you'd switch back to plain eclipse).
MOTODEV STUDIO for ANDROID
Check your plugins directory, located in the folder you extracted the original eclipse zip file to.
For me it is located in
eclipse-java-indigo-SR2-win32-x86_64\eclipse\plugins
and I see the following files related to the ADT plugin
com.android.ide.eclipse.adt_18.0.0.v201203301601-306762.jar
com.android.ide.eclipse.ddms_18.0.0.v201203301601-306762.jar
com.android.ide.eclipse.hierarchyviewer_18.0.0.v201203301601-306762.jar
com.android.ide.eclipse.traceview_18.0.0.v201203301601-306762.jar
overlay.com.android.ide.eclipse.adt.overlay_18.0.0.v201203301601-306762.jar
Make sure you have files similar to these.
Now open a shell and run the following in your eclipse install directory
eclipse.exe -console
you should get the osgi (Open Services Gateway Initiative) console. Now you can see whether your bundles have unresolved dependencies and start them manually. So try
osgi> diag com.android.ide.eclipse.adt
and
osgi> start com.android.ide.eclipse.adt
and check the output.
Have you restarted eclipse after install of ADT plugin
I see you are on Windows, I had the same problem and in my case I had to run Eclipse as administrator to install the plugin, so uninstall it, restart eclipse as administrator and reinstall it. You don't need afterward to run eclipse as administrator just to use the plugin, its only required for the installation.
The root cause might be folders ownership problems, as quoted by others, when I had the same problem I tried setting folders ownership but I could not apply my permission changes so running as administrator eclipse was the easy way for me. If you are not allowed to run eclipse as administrator on your station then you should search on the ADT documentation which folder should be owned by the user running Eclipse.
Check the answers in this post:
Maybe going to choose Help > Check for Updates or reinstalling ADT plugin again works.
There are chances that the plugin may not have been correctly installed. Try reinstalling the ADT. Or in the help menu check for the updates nad try installing through it.
I hope it 'll solve your problem.
Which you are using eclipse id , i think you are not using proper id. For better reference visit below links
Hello-world-example
Installing-adt
Same problem here. I've solved it like these:
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.
Followed from here

Unable to work with Android in Eclipse

Initially I was working on Android in Eclipse and everything went fine. But two weeks before i installed Texlipse plugin and was working with it. Now, when i wanted to switch back to Android i'm unable to.
In new project there's no option for creating a new Android project nor even a Java project.
Even i tried to change the Preference window to Java or Java Browsing but anything didn't work. Now i'm unable to run or compile even a single java file even after changing the perspective. I don't know whether this could be due to Texlipse, i tried searching google for ways to uninstall Texlipse but nothing worked.
So, pls anyone help me to sort this out...
Unninstall eclipse and install ADT again
If you want to play something before eclipse uninstall, what you can do is, go to your eclipse--->plugin folder (C:\eclipse\plugins something like this). There you will see all androind plugins which starts with com.android.....You may delete them and repeat the steps defined in this link.Android eclipse setup
This is one try but can't guarantee (Remember this may messup your eclipse if it don't work, so get ready for eclipse unstall if it doesn't work).
You could try launching Eclipse with the -clean parameter. This saved me when Eclipse was hanging on startup. Certainly worth a try before a re-install. More info here:
http://www.eclipsezone.com/eclipse/forums/t61566.html
go to windows/android sdk manager. If it works and androids vesions you've choosed are there, AND you don't see android in eclipse, I am afraid you will need to reinstall everything.
If sdk manager won't work, than install start sdk kit (http://developer.android.com/sdk/index.html). After that run sdk manager and set up the packages you need. If it won't work,
go to help/install new software and uninstall items that were installed in the backward sequence. After every remove check the prev step
I HAVE met the situations where only cleaning off all eclipse info and reinstalling it helped.
So, good luck!

Can't Install ADT. org.eclipse.wst.xml.ui is missing

I am having trouble getting the Android Development Tools to install. I overcame one error involving the GEF. I now have a new error.
Missing requirement: Android Development Tools 0.9.6.v201002051504-24846 (com.android.ide.eclipse.adt.feature.group 0.9.6.v201002051504-24846) requires 'org.eclipse.wst.xml.ui 0.0.0' but it could not be found
I am running Kubuntu 9.10 and Eclipse 3.5. I have managed to get the Android DDMS to install. But I keep running into blocks with the Development Tools. I have the Android SDK installed.
What do I need to do in order get the missing component?
Ran into the same problem, and after a bit of searching, I found this:
http://code.google.com/eclipse/docs/faq.html#wstinstallerror
It looks like fedora ships with the official eclipse repository disabled by default. (was true for me on fedora 12 64bit) You need to go to Help->Install New Software, click on the "Available Software Sites" link, find the official repository in the list, and enable it.
I never use Eclipse classic as ADt requires wst..install eclipse j2ee or modeling to fix missing components
I ran into this when I did not precisely follow the order of the installation instructions. Delete your eclipse install and reinstall, run update until it doesn't find anything new, then install the android plugin checking the box that says to search all sites for required packages. It should clean it right up. You'll still need to do all the configuration in the developer.android.com instructions for installation.
Had the same issue.
I had to add the plugin for (in my case) galilio, by adding
http://download.eclipse.org/releases/galileo in the install new software tab,
then selected each of the WST packages (the xml one alone didnt resolve it).
They were listed twice (same version, different checksums), so I choose the first of each.
HTH,
Stuart
I was having this trouble for a couple weeks then i noticed my Anti-Virus icon (AVG) kept popping up beside my clock when i normally have it hidden.
I disabled my anti-virus and the web link scanner and tried again.
Worked fine.
Hope it helps.

Categories

Resources