Related
Not sure what I'm doing wrong here. I installed the Android SDK Manager, and am now trying to install a platform like the Android Dev website suggests. Once I clicked install I got an error stating that the Manager could not create a temp folder within the Android directory. So I created it. Now I'm getting this error:
Downloading SDK Platform Android 2.3,
API 9, revision 1 File not found:
C:\Program Files
(x86)\Android\android-sdk-windows\temp\android-2.3_r01-linux.zip
(Access is denied)
There is also a little message under the progress bar that says "Done. Nothing was installed."
I'm running Windows 7 Ultimate, in case that's of any use.
Try running Android Studio as an administrator, by right-clicking on the .exe and selecting "Run As Administrator".
Also, some anti-virus programs have been known to interfere with SDK Manager.
I was getting a similar permission issue and SDK Manager could not download and install new components. Error message was (I'm running Android Studio (I/O Preview) 0.2.9)
"Unable to create C:\Program Files
(x86)\Android\android-studio\sdk\temp"
Although solution was infact what #william-tate's answer says, I could not run the 'SDK Manager' directly. It fails with message:
Failed to execute tools\android.bat
The system cannot find the file specified.
Instead I ran the 'tools\android.bat' as Administrator, which in turn launched SDK Manager with same permissions which fixed the issue.
Hope this helps for someone who faces the issue I faced.
In Mac OS X (tried with Android Studio), do the following in Terminal
cd /android/adt-bundle-mac-x86_64/sdk/tools
sudo ./android sdk
This launches SDK manager as admin. Now update/install the packages from SDK manager and it'll work.
For Android Studio, selecting "Run As Administrator" while starting Android Studio helps.
In my case I had to specify proxy settings in Tools->Options.
I had same problem when I try to install it on my pc (Win7, 64-bit system). I had an error message shown in figure below. But when I check my local folder 'C:\Users\username\AppData\Local\Android\sdk', the Android SDK is already there. Somehow Android studio could not see/link it.
So please check first whether you can find the Android SDK in the local folder. If yes, just follow the next steps.
Chose 'Cancel' and click on 'X' on the top right corner.
Chose 'Do not re-run the setup wizard' and click 'OK'
Start Android Studio again and go 'Configure'-->'Project Defaults' --> 'Project Structure'
Add 'C:\Users\username\AppData\Local\Android\sdk' to 'Android Location' and click 'OK'
Click on 'Start a new Android Studio project'.
Hopefully it helps.
I had a similar issue - very slow xml downloads followed by an empty package list. The SDK, it seems, was trying to use legacy Java installation. Setting the JAVA_HOME to the 1.6 jdk did the trick.
In my case I was using Windows 7 with the 64-bit OS. We installed the 64-bit Java SE and 64-bit ADT Bundle. With that set up, we couldn't get the SDK manager to work correctly (specifically, no downloads allowed and it didn't show all the API download options). After trying all of the above answers and from other posts, we decided to look into the Java set up and realized it might the 64-bit configuration that's giving the ADT bundle grief (I vaguely recall seeing/reading this issue before).
So we uninstalled Java 64-bit and reinstalled the 32-bit, and then used the 32-bit ADT bundle, and it worked correctly. The system user was already an admin, so we didn't need to "Run as Administrator"
For those running SDK Manager in Eclipse, selecting "Run As Administrator" while starting Eclipse.exe helps.
For Linux/ubuntu User
Why it's happening?
due to lock icon on some folder(not having read/write access) in
"/yourpath/android-studio-SDK"
Sort and sweet solution
-Open Terminal (Ctrl +alt +t)
-copy pest sudo chown -R $USER: $HOME
-wait for a while.....
-now Try again to update your SDK
Happy Coding :)
The Access denied is because Windows doesn't give the default write and modify permission to the files in its install drive viz. c:
To resolve this issue I usually use a separate drive or in your case, you need to set the access rights to the specific folder in the options
right click -> options > security -> edit
In windows 8:
right click on windows button
List item
CDM as administrator
Press 'yes'
paste this $ C:\xxx\xxx\AppData\Local\Android\sdk\tools\android.bat
If you use SDK Manager in Eclipse:
Option 1: Right-click on eclipse.exe and select "Run As Administrator".
Option 2: If you don't want to start Eclipse.exe as Administrator just install/copy Eclipse installation files from "C:\program files\Eclipse ADT Bundle\" to some unprotected folder, like "D:\android\". Run "D:\android\eclipse\eclipse.exe", select menu item "Window => Preferences => Android" and change "SDK Location" to "D:\android\sdk\". After that you'll be able to install new packages in Android SDK Manager.
go to sdk folder and right click on SDK manager and run with administrator and enjoy installing.
To go along with what v01d said:
Using Android Studio for Mac OS X, the SDK folder could also be at /Users/{user}/Library/Android/sdk, where {user} is your username.
To find out where the partial SDK installation is, go to Configure > SDK Manager in Android Studio, then click edit at the top. This should pop up a window and show the location.
Copy this path and paste it front of the cd command in a terminal. Finally execute sudo ./android sdk to launch the standalone SDK manager.
EDIT (July 14, 2016):
The "android" binary file could also be at /Users/{user}/Library/Android/sdk/tools.
Solution for macOS
click right on AndroidStudio.app -> show Package Contents -> MacOS
now drag & dropping the studio-executable in a terminal
sudo! (Ctrl+A places your cursor in front)
start the SDK Manager inside AS to get your stuff (you will have root access)
https://www.youtube.com/watch?v=ZPnu3Nrd1u0&feature=youtu.be
you need 3 steps:
1- Configure -> "Appearance and Behavior" -> System Settings -> HTTP Proxy. I selected
"Automatic proxy configuration url:"
2-Delete your ~/.Android* folders (c:\users\ur user).
3-Run Android Studio. It will show you a welcome wizard where it tries to download the SDK again.
(envirnment: Windows 7
Eclipse
)
When I update in Android SDK Manager, I have selected all SDKs, platforms, samples and so on. After restart Eclipse, when I try to access Android SDK Manager, I got this message:
Location of the android sdk has not been setup in the preferences
!
When I tried to locate SDK in Window->preference->Android,
I got This warning:
This Android SDK requires Android Developer Toolkit version 21.0.0 or above. Current version is 20.0.3.v201208082019-427395. Please update ADT to the latest version.
!
I have tried to update latest ADT. It shows me: Cannot complete the request. See the error log for details. Android Development Tools will be ignored because it is already installed, and updates are not permitted.
Go to Help > Install New Software...
In "Work With" select "Android Developer Tools Updater Site"
(If not available, click Add... and enter: Name: Android Developer Tools Updater Site,
Location: https://dl-ssl.google.com/android/eclipse/)
Check "Developer Tools" and "NDK Plugins"
Location of the android sdk has not been setup in the preferences !
Go to Window > Preferences > Android and indicate where you installed the SDK.
This Android SDK requires Android Developer Toolkit version 21.0.0 or above. Current version is 20.0.3.v201208082019-427395. Please update ADT to the latest version.
Go to Help > Check for Updates and update the Android-related plugins.
I have manually downloaded the ADT-22.3.0.zip and installed in eclipse. This worked for me hope this will help someone.
See the instructions below
If you are still unable to use Eclipse to download the ADT plugin as a remote update site, you can download the ADT zip file to your local machine and manually install it:
Download the ADT Plugin zip file (do not unpack it):
ADT-22.3.0.zip http://dl.google.com/android/ADT-22.3.0.zip
Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog, click Archive.
Select the downloaded ADT-22.3.0.zip file and click OK.
Enter "ADT Plugin" for the name and click OK.
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.
To update your plugin once you've installed using the zip file, you will have to follow these steps again instead of the default update instructions.
The same instructions can be found in this link http://developer.android.com/sdk/installing/installing-adt.html
Why I put this answer?
Go to your eclipse, click on Help -> install new software -> Add... ->
type in 'ADT plugin' for name,
type in https://dl-ssl.google.com/android/eclipse/ for URL,
then a couple selections including ADT will show up in the window, click on the things you want to update then click okay, and you will be able to update your ADT.
I advise you to immediately click the "Add" button and fill fields like in the above quotation, because I have tried several times to install by selecting the "Work with .." etc. and the installation had an errors, and it was just a couple of times, and when I chose the "Add" button at the first time the entire installation was successful.
Maybe someone also had this problem.
Perhaps upgrading the Eclipse solving this problem .
I had the same problem , trying upgrading ADT online and offline(downloading the package from the site , but nothing change until I downloading the newer eclipse.
good luck!
I have tried all the above solution but unable to update the eclipse.
To update the eclipse firstly we have to uninstall the developer tools from the eclipse and reinstall it in the eclipse to resolve this issue.
I've followed the instruction here for installing ADT, but I don't see any sign of ADT in Eclipse, except that it's installed.
According to what it says here, I should have additional project templates, which are missing. See the screenshots:
Besides reinstalling eclipse and reloading the ADT I have found another solution :
Inside Eclipse ->Window ->Customize Perspective ->Command Groups Availability ->Check All Android groups -> OK
That should solve any issues. Currently there are four (4) android groups.
Good luck guys!
You Simply need to Download the ADT Plugin. Please look at step by step guide 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
Note: 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.
Note: 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'm on Ubuntu and had the same problem as the poster. Had to run Eclipse as sudo and do the ADT install (into the same workspace as my non-root user account).
Restarted Eclipse as a non-root user and everything works.
I think you have to update JDK.
Please check JDK version.
#java -version
I've meet same problem when I use JDK 1.5 on ubuntu.
The answer is here: Android ADT Plugin doesn't show up in Eclipse
Actually, running as administrator on Win7 worked for me after uninstalling ADT.
Another thing is to execute eclipse with the parameter -clean after uninstalling ADT.
When you load the Android ADT plugins, using Help -> Install New Software, you need to have started Eclipse with "run as administrator". If you installed the ADT plugins without having run Eclipse as administrator, it might not work when you go to Windows -> Preferences...., and Android doesn't appear in the left panel.
make sure you have the latest jdk installed. that was the issue in my case
Somehow, your installation didn't register properly. Try removing ADT and reinstalling it.
To uninstall, go to Window > Preferences > Install/Upload, then click on the "Uninstall or update" link. Find ADT (and related software), remove, then try to reinstall.
I had to reinstall Eclipse and that solved the problem.
I have Eclipse (Indigo Service Release 1, Build id: 20110916-0149) running on Win XP.
I've added
https://dl-ssl.google.com/android/eclipse/
and installed 4 plugins, including ADT, and restarted Eclipse.
Installed software list shows Android plugins are installed.
But nothing appears in Preferences, and there are no Android-type project in New Projects.
Later I check Eclipse's directories and there were four *.jar archives with these Android plugins, and they weren't unzipped to corresponding directories (like other plugins). I unpacked them so directories same as *.jar names, and started Eclipse again, but nothing happens.
How can I work with ADT plugin in Eclipse?
I just had the same problem on windows 7 running Indigo. I eventually discovered that I had accidentally not run Eclipse as an administrator when I installed the ADT plugin. I solved the issue by uninstalling the ADT plugin, and then re-installing the ADT plugin when running Eclipse as an administrator. Once I did that Eclipse restarted and immediately prompted me for the location of my android SDK.
As far as steps go:
Run Eclipse as Administrator
Go to Help > About Eclipse SDK > Installation Details
Select Android DDMS, Android Development Tools, Android Hierarchy Viewer, and Android Traceview
Click Uninstall and click through the dialogs
Restart Eclipse at the prompt
Close Eclipse and re-run it as an administrator (not sure if this was necessary but I wanted be sure Eclipse had full permissions when I reinstalled the ADT Plugin)
Re-install the ADT plugin the way you did before.
Restart Eclipse at the prompt.
Q: Did you install the Android SDK?
You need to do this in addition to installing a) Java, b) Eclipse and c) the Android plugins for Eclipse
Here's one (of many!) "Quick Start Guides" for setting up Android on your development PC:
http://www.talkandroid.com/guides/developer/android-sdk-install-guide/
PS:
Please don't "unpack" anything, except unzipping Eclipse itself.
You might actually wish to delete your install and re-install from scratch (just to make sure there isn't anything "weird" in your environment).
Well i had this issue as well, but what i see its one componment that isnt on the google servers (at least for indigo) com.android.ide.eclipse.adt_20.0.0.v201206242043-391819.jar
you need download the ADT from google server ADT 20.00 and the install new software in help menu as always
In the Add Site dialog, click Archive.
Browse and select the downloaded zip file.
Enter a name for the local update site (e.g., "ADT-20.0.0.zip") in the "Name" field.
Click OK.
and done choose the ADT developer that i bet you dont have installed that should fix the problem ;)
I tried everything and nothing worked until I made my JAVA_HOME and PATH point to my JDK 6, they were pointing to the 5, then before installing the ADT plugin, make sure Eclipse is using the JDK 6 in Preferences/Java/Installed JREs. Of course make sure you are running/installing everything as an administrator.
You should install start SDK package (download), after that install android packages by windows/SDK manager. After that you§ll see everything you've mentioned
I encountered the same problem today, and a simple removal of the installed plugin is not helpful. My final solution is:
Remove the Android DDMS, Android Development Tools, Android Hierarchy Viewer, Android TraceView and Tracer for OpenGL ES first.
Remove the com.android.ide.eclipse.adt.package_version_info and other adt related jar directory under eclipse_home/plugins/. It is very easy to recognize based on its version_info on its name.
Modify the artifact.xml under eclipse_home, remove all artifact tag related with 'adt'.
Reinstall Android ADT again with Admin Privilege.
If you are going to reinstall as administrator make sure to remove the ADT Plugin from the Windows > Preferences > Install/Update > Available Software Sites.
Also something that may help is when installing the ADT Plugin you get the option for Developer Tools which the http://developer.android.com/sdk/installing/installing-adt.html guide tells you to select, but make sure to also select NDK Plugins.
And as usual do this while running as administrator. It probably doesn't make a difference but instead of clicking restart I closed Eclipse and reopened as administrator each time it was necessary.
As far as I can tell the NDK Plugin was the only thing I did differently when I finally got it to work.
I have Ubuntu , to make story short, I tried every advice here, nothing helped (reinstall, ADT removal- adding, run as sudo, deleting .eclipse folder etc).
The cause of problem was running eclipse updates.
So, I downloaded ADT bundle as zip - adt-bundle-linux-x86_64-20130729
unpacked it, run eclipse inside it, used existing workplace, and it worked, 'android' option appeared in Preferences.
However, there is no longer 'eclipse' splash logo at start-up, it's now called Android Developer Tools
Build: v22.0.5-757759
The real solution to this issue is that you MUST run Eclipse as an Administrator before you install. There are a number of plugins that have this same issue.
When I try to install the Android Developer Tool, I get the following error.
Software being installed: Android
Development Tools
11.0.0.v201105251008-128486 (com.android.ide.eclipse.adt.feature.group
11.0.0.v201105251008-128486) Missing requirement: Android Development Tools
11.0.0.v201105251008-128486 (com.android.ide.eclipse.adt.feature.group
11.0.0.v201105251008-128486) requires 'org.eclipse.wst.sse.core 0.0.0' but
it could not be found
I also found that adding the WST package does not help. I get the following,
Cannot complete the install because
one or more required items could not
be found. Software being installed:
Google Web Toolkit SDK 2.3.0
2.3.0.r37v201106211634 (com.google.gwt.eclipse.sdkbundle.e37.feature.feature.group
2.3.0.r37v201106211634) Missing requirement: Google Plugin for Eclipse
3.7 2.3.2.r37v201106211634 (com.google.gdt.eclipse.suite.e37.feature.feature.group
2.3.2.r37v201106211634) requires 'org.eclipse.wst.xml.core 0.0.0' but
it could not be found Cannot satisfy
dependency:
From: Google Web Toolkit SDK 2.3.0 2.3.0.r37v201106211634 (com.google.gwt.eclipse.sdkbundle.e37.feature.feature.group
2.3.0.r37v201106211634)
To: com.google.gdt.eclipse.suite.e37.feature.feature.group
2.3.2
I'm running Eclipse Indigo 64bit version. Could someone point me in the right direction? Or tell me where to find that missing package.
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.
(Had to do the same yesterday after getting Indigo)
I had the same problem. This helped for me:
Go to Help->Install Software
Click on "Available Software Sites"
Click on Add:
Name: "Helios"
Location: "http://download.eclipse.org/releases/helios"
Try to install Android Development Tools
I got around the org.eclipse.wst.xml.core 0.0.0 issue by taking the following steps:
Go to help
Install New Software: Add Name: Indigo Location: "http://download.eclipse.org/releases/indigo"
Select 'WST Server Adapters' under 'Web, XML, Java,..." (last name in list)
Accept licensing agreement
Restart Eclipse
Resume procedure to install ADT
It worked for me, hope it does for you too.
I had the same issue. The other solutions here didn't work for me because I couldn't even see the Indigo / Helios update repos. The problem was that Eclipse was in Program Files, but I wasn't running it as an administrator.
So I got indigo, and then :
Go to Help->Install New Software
Click on Add: Name: "Indigo" Location: "http://download.eclipse.org/releases/indigo"
Try to install Android Development Tools (as you will see, only 1 option out of 4 will appear - this is normal for Indigo)
Ensure you have the option "Contact all update sites during install to find required software". This option is located in the lower left corner on the first screen after choosing Help/Add New Software. This is unchecked by default. This WILL FIX the issue if it was unchecked.
The plugin will install in 3.7 32bit and 64bit.
The Google Plugin for Eclipse depends on other specific Eclipse components, such as WST. Your installation of Eclipse may not yet include all of them, but they can be easily installed by following these instructions. Eclipse 3.7 (Indigo)
Select Help > Install New Software...
Click the link for Available Software Sites.
Ensure there is an update site named Indigo.
If this is not present, click Add... and
enter http://download.eclipse.org/releases/indigo for the Location.
Now go through the installation steps; Eclipse should download and install
the plugin's dependencies.
I've also had this problem. I solved it by going to:
Clicking -> available software sites
Select "Helios" and click Reload.
Select "ADT Plugin" and click Reload.
Then went back, tried again and it worked.
If you still can't get it working there are directions for doing it manually here:
http://developer.android.com/sdk/eclipse-adt.html#installing
(also: I'm using 3.7 64x, it's working fine, not having any issues.)
I tried installing and got the same error (using the new "marketplace"). I tried the typical Help->install new software... then where it says "Work with:" I entered:
http://dl-ssl.google.com/android/eclipse/
followed all the prompts and everything seems to be working fine now.
Execute eclipse with root level
$sudo /opt/eclipse/eclipse
Go to Help->Install Software.
Add the following link http://dl-ssl.google.com/android/eclipse/ .
Then press next and accept the license, it installs some of the software required then you will be gud to go.
After the eclipse restarts it prompts you to download the android sdk required or give the path of android sdk if already it is downloaded.
This works all the time what ever may be the version.
By the way, Eclipse + ADT (ADT Bundle) is now provided as a single package,
Developer.Android:ADT Bundle
None of the existing answers worked for me. Having all the correct update sites in "available sites" was not enough to tell Eclipse how to find its dependencies.
Using Fedora 14 and Eclipse Indigo 3.7.1, I had to follow these steps to make the installation working:
Check and install "Linux Tools" from http://download.eclipse.org/releases/indigo
Check and install "Linux Tools" from http://download.eclipse.org/releases/indigo/201109230900
After restarting Eclipse, I was able to finaly install the Android SDK.
Thanks to all for the posts but unfortunatley none of the above solved my problem. Eventually what got it all working for me was to download eclipse indigo 3.7.2 and (this is very important) EXTRACT IT DIRECTLY INTO MY PROGRAMS FOLDER. Before I would extract it to my desktop and copy into the programs folder (C:\Program Files) but I would jus get an error message saying "The Eclipse executable launcher was unable to locate its companion shared library" when trying to run eclipse.
After extracting eclipse directly to my programs folder I ran it and added the ADT plugin the way reccomended in on the android site and so far all is working well :)
I'm on a windows 7 x64 machine and had jre-7u2-windows-x64.exe, jdk-7u2-windows-x64.exe and installer_r16-windows.exe installed before extracting eclipse.
I hope this can help someone else too :)
Still pretty bewildering. It seems some combination of the above suggestions worked in Eclipse 3.7.2.
First, I had to move to a network that dl-ssl.google.com hasn't blocked (this is an ongoing problem with the Google server)
(Easy with a laptop, less so with my tower.)
The Eclipse folks should look at this problem.
The user sees an error, something about a missing package "org.eclipse.wst.sse.core', say.
There are 50 or so plugin repositories listed.
which of these is the one that has this package???
None has a name containing a 'wst' or 'sse'.
This is very poor. There needs to be a way for the user to associate the error message
with a repository solution.
Anyway: after some hunt-and-peck I ended up selecting
(and reloading each repository, and with Contact all update sites during install to find required software checked)
https://dl-ssl.google.com/android/eclipse/ (ADT Plugin, which I
added according to the Google instructions)
http://download.eclipse.org/releases/helios (Helios Milestone
repository)
http://download.eclipse.org/eclipse/updates/3.6
(Eclipse Project Test Site)
One of these provided the packages needed for the Android plugin . Best guess: Helios.
The best answer (by Sathya) is also applicable in Eclipse Juno.
This seems to be fixed in Indigo Eclipse now, there's a video showing someone install android eclipse on youtube?
Cannot complete the install because one or more required items
could not be found. Software currently installed: Shared profile
1.0.0.1308118821836 (SharedProfile_epp.package.java
1.0.0.1308118821836) Missing requirement: Shared profile
1.0.0.1308118821836 (SharedProfile_epp.package.java
1.0.0.1308118821836) requires 'org.maven.ide.eclipse
Run As Administrator !!!
Eclipse Classic or Galileo is the two you can use. The other Eclipse IDE are not meant to program or interpret JAVA in the same way. Download either 64x or 32x will work on Classic or Galileo on a PC. Just make sure you PC can handle which version of Eclipse you download.