Updating Android tools inside of SDK Manager automatically restarts my machine - android

Here is what's going on... It doesn't matter if I'm in Eclipse or manually launch SDK Manager. Once I'm in the Android SDK Manager I have packages selected and I click Install x packages... I accept the License agreement then click Install. It is then my computer restarts itself before it downloads and installs anything. It restarts before I can see any error messages. It does this every single time. I have re-downloaded everything and tried it from scratch, but I still get it. Why is it doing this and how can I prevent it?!

Since nobody on here could help me I figured it out. Here's what I did. First, I gave all permissions and took away read only attributes for the folder sdk [it may be named something different on your system] I then created a copy of the tools folder and named it tools 2. I opened a command prompt using administrator and use the command "android.bat avd manager" and i was able to update my sdk tools and all without any issues. Thank you me.

Related

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!

Eclipse/Android SDK won't let me select a 'Build SDK' option when starting a new activity

I am attempting to use the android plugin for eclipse (Indigo), and I've gotten it to work once. Unfortunately the machine I am using has a 'deep freeze' program on it, and so I've had to install the SDK several times in order to use it. I have permision from the system administrator to install the SDK permanently, but I cannot seem to get it installed correctly. My problem is as follows:
I follow the instalation instructions found on http://developer.android.com/sdk/installing/index.html, have a few problems making Windows recognize the fact that the JDK is already installed (which I work through), and then complete the installation. I attempt to create a new Android project and in step 1 of the project creation the drop down bar labelled 'Build SDK' is completely blank, and the 'next', 'back', and 'finish' buttons are all dark and unclickable.
I'm not quite sure what I've done differently from installation to installation (of the SDK). Any help or suggestions would be apreciated.

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

Android "A folder failed to be renamed or moved" (fixes tried, no success)

Here is how my story goes. At first, I installed the Android SDK in the default directory it selected, which was Program File (x86) (which I thought the default was supposed to be app data?!) After SUCCESSFULLY pulling the APIs I quickly realized the mistake I had made, due to spaces being in the name, so I then uninstalled it and re-installed it in my D drive under a folder called development.
That all went fine, but when I tried to pull the SDK, I received the "A folder failed to be renamed or moved" message. I then tried disabling my anti-virus (more on that later), closing all other windows, and even ending windows explorer, but nothing changed.
To disable my antivirus, I used it's control panel (Avast BTW) to turn off the shields. What I really wanted to do was end the process, but, and here is the big but, Access Denied! I even ran taskmgr.exe as admin, but no success. Can anyone explain why that is? Anyways, after getting fed up with it all, I just booted into safemode with networking, and all is well for now, but I really would hate doing this every time I need to update the SDK, so any suggestions on how to fix this would be a great help, especially how to end my antivirus process so I can see if that's the problem.
EDIT: And I also did all that while running the Android SDK manager as administrator from the folder it is installed in.
I assume that the problem happens because the upgrade program wants to upgrade itself directly while it is running. My solution is that every time before you want to install something new, make a copy of \<sdk dir>\tools dir in the \<sdk dir>\ path, and then, upgrade or install something by excecuting android.bat in the copied tools folder. This works for me.
try rename "platform-tools" folder as "_platform-tools" and create a new folder as name "platform-tools".
that's work for me!
Having eclipse open sometimes causes this.
Open the Android SDK Manager then close eclipse before you press the "install packages" button and it should be fine.

Android SDK and AVD Manager hangs trying to rename temporary folders

I run Android SDK and AVD Manager in Vista and have problems installing components. The installer downloads components successfully, but at the end of the installation it hangs for about minute and then asks to disable AV software. If I choose 'No', the installer stops with error message like: "Filed to rename directory '...' to '...' ". Thus, I have to unpack downloaded components and place them to proper folders manually.
I have no AV software. I assumed that the installer requires Administrator rights, but runing it as Administrator didn't help.
If anybody fixed the issue, please advice something.
Thanks.
Had same issue on Windows 7 32-bit. It worked eventually for me. Disabling your AV has no effect. It's probably a zombie copy of the manager.
Exit Eclipse etc...
Close most other apps, Run eclipse, run the manager (you have to click on the menu twice for some reason), I eventually got it installed OK on my 3rd attempt - just try again.

Categories

Resources