Android SDK fails to install

左心房为你撑大大i 提交于 2019-12-05 18:52:47

You should manually create 2 more directories under your root sdk dir 'android-sdk-windows':

  1. platforms
  2. add-ons

and than start SDK Setup.exe from the root directory or try to open it from Eclipse 'Window' -> 'Android SDK and AVD manager'

  1. Run the SDK setup
  2. Wait for the error message
  3. Disable anti virus
  4. Install this unlocker program http://download.cnet.com/Unlocker/3000-2248_4-10493998.html
  5. Run the unlocker program
  6. select the tools directory to unlock it
  7. select yes in the installer.

This is what worked for me.

http://code.google.com/p/android/issues/detail?id=4410#c41

The directories "platforms" and "add-ons" need to be manually installed in the android SDK directory (parallel to "tool"). This is only necessary in a new installation.

I had the same problem, adding the directory add-ons got rid of the error when eclipse is first open but I still couldn't download packages from the sdk manager.

What solved this problem for me (in windows 8) is running eclipse as administrator.

I got this error from my Jenkins CI.

It was because the Jenkins user did not have permissions on the android-sdk-linux folder.

(not the best solution but fixed it with):

 sudo chmod -R 777 /usr/bin/android-sdk-linux
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!