I've recently tried to add packages to the SDK through the AVD Manager but I get file not found as an error when the manager goes out to find available packages. I looked at the SDK website but didn't find any resolution.
It looks like for some reason the repository path may have changed but I don't see a way to change it in the Manager.
So basically I don't see any available packages.
I wanted to install the 3.x packages to support tablets. If anyone has any idea I would appreciate any input.
thanks
I had a similar problem.
Solution:
Download the latest ADT plugin
and then the lastest SDK for your OS.
After setting up, downloading required packages should be easy.
Ensure your connection doesn't have a proxy, if it has you will required the necessary credentials.
Uninstall, download a fresh version and reinstall the entire program, it was recently updated to a new version, maybe yours missed out?
Related
I'm trying to setup Android Studio on a new install of Mac OS X Yosemite. I downloaded the Android Studio Beta v0.8.14 from here: https://developer.android.com/sdk/installing/studio.html and upon launching it complained about not having an SDK (although the download page indicates it should include the SDK). I tried searching after installing for the SDK and can't find it (a few other posts indicate /Applications/Android Studio.app/sdk but that location doesn't exist). Where is the SDK installed and what is required to set it up?
Go to the SDK Manager and click Edit... next to the field for the location of the SDK. Then an "SDK Setup" window should display. There you can download the SDK.
Edit: This answer is deprecated as Android Studio seems to bundle everything since a while already.
Old answer
It seems the android-studio-bundle version is no longer available in the download page (instead there are only android-studio-ide). When you start Android Studio, it won't let you create a new projet until you configure the SDK location.
That means you have to download the SDK separately here, extract it somewhere, and configure it on Configure->Project Defaults->Project Structure. After that, the SDK Manager icon will be enabled and you can download the tools you want.
I had the same problem on Windows. After I re-installed it a few times, I found that the SDK was installed but hidden in C:\Users\<user name>\AppData\Local\Android\sdk.
Information for Windows
For some reason, which I have no time to investigate, Android seems to provide, currently, the IDE and the SDK separately, while in the Dev Webpage says the opposite.
This is the "complete" (false!) tool I have just downloaded: android-studio-ide-171.4443003-windows.exe (SDK is missing here, note the "ide" in the file name).
And this is the real complete tool I had downloaded few months ago, from the same place...: android-studio-bundle-162.3871768-windows.exe
Note that this last one has the "bundle" in the file name.
Please, download the bundle (IDE+SDK) from here:
https://dl.google.com/dl/android/studio/install/2.3.1.0/android-studio-bundle-162.3871768-windows.exe?hl=ko
I want to suppose (¿?) that similar link you can find for Linux or macOS just Googling for it.
Hope this helps!
It worked like this for me
Downloaded the Android Studio
Install Android Studio
Open Android Studio after installation.
You will get a dialog box to import settings if you already have Intellij installed on your machine. Say "Do not Import". Otherwise continue to next step.
It will ask you in the dialog box to pre-configure such as theme, path etc.
Just click next next...and then Finish. You will see the SDK tool will start downloading.
After installation is finished. You can find it in this path: C:\Users\<user name>\AppData\Local\Android\sdk
If you have ever installed Android Studio before and then removed it, it won't reinstall the SDK automatically (speculation: some Windows setting somewhere).
The solution is starting Android Studio and then
File -> Manage IDE Settings -> Restore Default Settings
This will wipe any custom settings you don't have at this point and trigger the SDK install
What Pablo wrote is misleading.
This is the "complete" (false!) tool I have just downloaded:
android-studio-ide-171.4443003-windows.exe (SDK is missing here, note
the "ide" in the file name).
Yes, it is IDE only, but after you install this IDE and first time run it, SDK will be downloaded automatically. So there is no need to download some outdated bundles. Just use default "green button" on https://developer.android.com/studio/index.html
I'm using Ubuntu, and had previously installed Android Studio. It was using too much space, so I deleted it. Now when I downloaded it and started ./studio.sh, it found my previous installation configuration directory and asked to import from there. I did, and then this problem occurred.
I put the directory .Android Studio 3.3 in the trash and restarted ./studio.sh, and it imported the SDK automatically for me. That was good, because I couldn't find it where it was supposed to be according to the dialog box. The 3.3 above is from the version of Android Studio I was installing.
in my case, my country is forbidden from google, and my PC's time zone was set by my counrty.
after I change my timezone to another country my problem solved and android studio download SDK and nkd easily
Re-install studio. If ANDROID_HOME is set to custom location then it will install sdk there else it will install SDK in C:\Users<user name>\AppData\Local\Android\sdk
Note:this is a temporary fix
If you have Eclipse then you can use that SDK for emulation.
Just run the sdk manager and emulate a version of android. Then while you are asking for emulating something ie while running code it will show your emulator as online and you can even use it.
Hope this helps you.
All the Best...
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.
I have worked today on a project, which had no errors, and after a sort break, when I re-opened eclipse, I got the following error:
I have tried searching for a solution, but the error is to long in length to find any results.
I even downloaded the new 17 revision, but it didn't help.
So lets start by verifying the current version of ADT installed. Just in case:
Start Eclipse
Click Help
Click "About Eclipse"
Then choose the icon that has the android robot
In the new dialog you will see the ADT version. If this is NOT 17 then the error message does not lie and even though you may have tried to upgrade to version 17 it clearly has not. If it has then I would suggest a complete re-install of ADT and the SDK. You can follow the docs here http://developer.android.com/sdk/eclipse-adt.html#installing
One reason the update may have failed before you start pulling it all apart is that you may need to run eclipse as an administrator. I also find that SDK updates via the SDK manager have to be done as an administrator too.
When going from Eclipse to the SDK Manager I sometimes find that Eclipse has not started it with admin rights even though Eclipse has them. Therefore the update process then fails. I find it best to start the SDK manager with admin rights yourself, and then update the SDK manually and check the error log for any issues (normally the download works but then fails to copy the files for me if I am not in administrator mode).
EDIT/UPDATE:
Have you checked the ADT settings in Eclipse, especially the setting for SDK Location? Does it point to your up to date copy of the SDK? If it is having trouble opening the SDK manager then it could be the SDK is broken after attempting an update. I would uninstall it completely then download a fresh copy.
Restart eclipse after the download.
It shouldn't give you an error
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
I've been trying to create an application that uses Google Maps and upon getting an error for "MapActivity" I searched the web and found the solution was to make my build target "Google APIs".
However, I looked in the "Android SDK and AVD Manager" in Eclipse, I could find it anywhere :(
I looked under "Third part Add-ons">"Google Inc" but it simply says "No packages found".
Any help, please?
I encountered the same problem
Go here to manually download the Google APIs.
For example, I use GoogleAPI level 8, so I download the package here
After downloading just extract the zip file to "C:\Program Files (x86)\Android\android-sdk\add-ons" and rename the directory to "google_apis-8" instead of "google_apis-8_r02".
This happened to me.
The simple fix was to update currently installed packages, which in turn updated the SDK Manager app, then after restarting, every appeared including the USB drivers.
Apparently, if the SD Manager is outdated, then you won't be able to install important thing like the USB driver.
If you're using the latest version of the SDK (ADK 14), the Google API packages should be located in the folder containing the appropriate SDK level in the SDK manager.
For example, for Android 2.2, there should be a folder called "Android 2.2 (API 8)" which should contain the SDK "SDK Platform" and additional pieces such as the Google APIs "Google APIs by Google, Inc.".
I met the same problem and it said "access is denied".
I am using 64bit win7 and the sdk tools is installed under C:\Program Files (x86)\Android\android-sdk.
I figure out that it is because the SDK manager does not have permission to the folder so the quick fix is to right click SDK manager and run it as administrator.
I found that working with the Motorola Development studio made things very easy to pick up various API levels from Google. You can find all of the download and documentation at
developer.motorola.com
Sometimes Google Server is down or return 502 error, so you cannot find any manifest file. This happened to me. The solution is to wait for a couple of minutes.
Run as Administrator did the trick from me in Windows7. SDK mgr is showing all extra google apis too after this.
I faced the same problem.
Restarting the Eclipse & SDK manager solved the problem. After Restart, all the GOOGLE API and other stuff are visible under the respective Build.
If this dont show any change, Invoke the SDK Manager.exe as ADMINISTRATOR and this will solve the problem
Try clearing your cache (Tools > Options > Clear Cache), then
reloading (Packages > Reload), and see if that helps.
If it is an old package it is possible that it is obsolete and the SDK manager wont show it by default. Go to "Packages" Tab and select "Show Obsolete Packages".
Reinstalling SDK manager and ADT solved the problem.