Can't update Android SDK tools to rev13 - android

When I try to update my SDK to the latest version, i get the following error:
A Folder failed to be moved. On windows this typically means that a program is using that folder (for example Windows Explorer or your anti-virus software.) Please momentarily deactivate your anti-virus software or close any running programs that may be accessing the directory 'C:\adt\android-sdk\tools'. When ready, press YES to try again.
I checked with Process Explorer what processes use that directory and, surprise surprise, it's the SDK Manager that I use for the update.
Has anyone solved this?

I was also facing the same kind of error when i was trying to installing SDK, later on i found that there is a Kaspersky anti-virus installed in my machine and due to it, android is giving me this error.
Once i have paused the Kaspersky security service then i was successful to download the SDK and installation for the same.
So my clue is you should stop any antivirus service.

This problem was resolved in Android SDK Tools rev14.

Related

Unable to Download Packages via Android SDK Manager

I have recently installed Android SDK on my computer running Windows 7 x64.
I then installed the Eclipse ADT plugin. I am running Eclipse Juno JEE.
When I attempt to run the SDK Manager through Eclipse, I receive the following errors:
Nothing I have tried has allowed me to download/install/update Android SDK and its packages.
I have tried https and forcing http
I have tried running calling program as administrator.
I have added Eclipse, SDK Manager to Firewall exceptions.
I have turned off my antivirus.
I have turned off my firewall.
I have tried various combinations of the above.
I can navigate my browser to both URLs (using Firefox). That should negate "Failed to read..." options 1 and 2. Option 3 seems to be the likely candidate as the XML files do not, in fact, include the <'xsd:schema'> tag. However, I don't know how, if, or where I might be able to point SDK Manager to a local, modified copy of these XML files, or if that would even solve anything.
Any help would be greatly appreciated.
Note: I have installed Android SDK/ Eclipse ADT Plugin on the same machine in the past. This is a fresh install after a recent reimage.
I am not sure if this answer's your question exactly to the point but yet I hope this helps you.
As u wrote it looks like you have downloaded eclipse from its website and android sdk separately from Android website. Why don't you download the Android SDK ADT package with pre-eclipse setup.
That will make your job way lot easier.
The file name would be something like this:
adt-bundle-windows-x86_64-20130729.zip

SDK update failed

I'm unable to update Android SDK tools version 21.0.1 on my Windows machine. While installing, this log shows:
Installing Android SDK Tools, revision 21.0.1
Failed to rename directory E:\android-sdks\tools to E:\android-sdks\temp\ToolPackage.old01.
[find_lock] Directory locked by cmd.exe;java.exe
Done. Nothing was installed.
How can I update SDK to latest version?
Thanks.
Android SDK Successfully updated. This one Works .. Check Here
i have gone through this.
just follow steps.
close eclipse(if open).
go to android-sdk folder
copy tools folder and paste in same location using tools-copy2 (or any thing)
just launch update from tools-copy2
and you will be able to update it.
Close the ADT, but leave the Android SDK Manager and click restart or replay
I'm 99% sure that you're actually seeing a UAC problem. There are multiple known scenarios where Windows Vista or 7 (and presumably 8) will allow the creation of a new file, but silently blocks modification, and returns a "file locked" error message if you try.
Try temporarily disabling UAC (remember, you have to reboot for it to take effect) and running the updater with UAC disabled. If that fails, go a step further and make sure you launch the updater from a command prompt with Administrative privileges.
I think the root cause has something to do with the installer spawning another process/thread/app that doesn't inherit the parent's admin rights for some reason, and does it in a way/context that causes Windows to silently block the action instead of presenting you with a privilege elevation prompt.
I had problem updating android SDK platform tools. What I did is I ran the SDK manager as administrator and reloaded the packages. After that when I updated, it worked fine!

Android SDK Error: Version

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

Trying to update Android SDK

In trying to update my SDK to the latest, some things installed, but others* didn't.
*SDK Platform Android 4.0, API14, revision 3
Google APIs by Google Inc., Android API15 revision 1
Google APIs by Google Inc., Android API14 revision 2
Sources for Android SDK, API14, revision 1
I got this err msg:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-= Warning ! =-
A folder failed to be moved. On Windows this typically means that a program is uing that folder (for example Windows Explorer or your anti-virus software.)
Please momentarily deactivate your anti-virus software or close any running programs that may be accessing the directory 'C:\Program Files (x86)\Android\android-sdk\platforms\android-14'.
When ready, press YES to try again.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Even after manually stopping a McAfee service and MS Malware service (MS Security Essentials) via
Task Manager, I still got this err msg.
The error highlighted (in brick red) in the Android SDK Manager Log is:
Failed to rename C:\Program Files (x86)\Android\android-sdk\platforms\android-14 to C:\Program Files (x86)\Android\android-sdk\temp\PlatformPackage.old01.
Is this something I should do manually - would that allow the update to take place?
If you started the update from eclipse, it might help to exit eclipse, and go to your sdk/utils directory and start de SDKmanager from there. This worked for me after I got the same message today.
I don't know if this will help but generally a few things might cause problems like:
Having a device connected or the emulator running.
Forgetting to run the Android SDK tool as Administrator.
Some errors can occur with the windows "program files (x86)" path. I tend to just move the Android folder to the root C path so the SDK would be at C:\Android
If you've covered all that then I'm not sure. It should usually just work without you having to do anything else.
That is the answer. C:\Program Files is protected against user modification.
Unfortunately, the SDK Manager does not escalate it's privileges. That would be a nice addition to the Windows version.

Unable to install Android ADT Plugin for Eclipse Helios 3.6.2

I am a new Android developer. While trying to install the ADT Plugin for Eclipse on a Win 7 system, I encountered this warning:
Warning: You are installing software that contains unsigned content. The authenticity or validity of this software cannot be established. Do you want to continue with the installation?
I clicked the 'OK' button to proceed, and was greeted with another pop-up window bearing the following message:
Problem occurred:
'Installing Software' has encountered a problem.
An error occurred while installing the items
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.android.ide.eclipse.adt 10.0.1.v201103111512-110841, action=).
Failed to prepare partial IU: [R]com.android.ide.eclipse.adt 10.0.1.v201103111512-110841.
Rebooting my machine did not help, neither did reinstalling a fresh copy of Eclipse.
Any help will be be appreciated!
Thanks!
I've had this problem too and I came across a few solutions that may help you.
Turn off your anti-virus software, some people have reported that it has been corrupting the plug-in. Redownload the plug-in and try again.
Turn on auto update by Eclipse -> Preferences ->Install/Update -> Automatic Update so that all the components you are using are current. This comes from AlphaBeta's response from the following thread http://groups.google.com/group/android-developers/browse_thread/thread/f3e69ff660789794/b1e12e80386142d0?pli=1
Make sure there are no spaces in the path where you installed eclipse, if there are delete the spaces in the folder names. Another user (ericdelang#gmail.com) on the same thread said this solved the problem from him.
Finally, what worked for me was unzipping ADT.14.0.0.zip and copying all the files from the plugins folder in ADT.14.0.0 to the plugins folder in eclipse. I have a mac and so this means I copied the following files from the ADT.14.0.0.zip archive:
com.android.ide.eclipse.adt_14.0.0.v201110171935-205994.jar
com.android.ide.eclipse.ddms_14.0.0.v201110171935-205994.jar
com.android.ide.eclipse.hierarchyviewer_14.0.0.v201110171935-205994.jar
com.android.ide.eclipse.traceview_14.0.0.v201110171935-205994.jar
overlay.com.android.ide.eclipse.adt.overlay_14.0.0.v201110171935-205994.jar`
into the folder /Applications/eclipse/plugins. Now install the plugin normally like it says on the developer.android.com page.
installing it via site or archive? try changing the way you are installing. I installed with archive and it worked well, sometimes it gives problem in installation via update site due to firewall issues.

Categories

Resources