Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to Install; Program accessing directory android-sdk\platform-tools

I'm trying to install the Android SDK to retry my shot at development. I'm following the steps at the developer site to install everything for working on Eclipse, but while installing the recommended SDK Platform-tools, I get a warning that a folder failed to be moved. I've closed everything that could possibly be accessing it, but I still get that error. The specific directory that's failing is "C:\Program Files (x86)\Android\android-sdk\platform-tools."

I had all of this installed at one point, but uninstalled it because I didn't think I would ever have time to really use it. There were no clear instructions that I could find for uninstalling, so I just did the best I could and cleared out everything I could find. Could it be possible that I missed something in the uninstallation that is messing me reinstall up?

like image 664
Sam Avatar asked May 23 '11 20:05

Sam


1 Answers

For the updating Problem after install.

The Android SDK Manager is what is locking the directory. It calls Android.bat in the tools folder to start. If you run Android.bat from command-line with "update sdk" arguments it will run all items from a temp directory and not lock the tools folder.

Change the directory below to your android directory.

"WindowsKey" + "R"

cmd

cd "C:\program files\Android\android-sdk\tools"

android update sdk

OR

In notepad type "android update sdk" without quotes.

Save the file as StartTemp.bat in the tools directory.

Run the bat

Cancel the first screen when it starts, then choose the SDK update version.

like image 103
LittleTimmy Avatar answered Nov 07 '22 03:11

LittleTimmy