先来一篇环境搭建的博客
这些都是大同小异。
http://blog.csdn.net/yzhj2005/article/details/6980676
http://blog.csdn.net/wangjinyu501/article/details/8206735
http://blog.sina.com.cn/s/blog_8669d5ab0101d3s9.html
一、更新Android SDK 出错 Failed to rename directory empToolPackage.old01
打算更新Android SDK 版本到 Android SDK Tools 20,打开SDK Manager.exe 开始更新,结果安装时弹出错误提示:Failed to rename directory D:android-sdk ools to D:android-sdk empToolPackage.old01.安装失败,在Ubuntu上没有出现这个问题,Win7上出现了,说是不能更改tools这个文件名,原来是当打开SDK Manager.exe后,会运行一些 tools文件夹下的一些程序,比如 android.bat,这样会使得tools这个文件夹被锁定,无法修改,网上有很多说是使用命令行来更新,这种有点复杂。
现在找到另一种很傻瓜的方法:
关闭之前打开的SDK Manager.exe ,把sdk 中的tools文件夹复制一份,就放在tools的同一级目录下,然后打开复制的那个tools文件夹(名称一般为 "tools-副本"),然后直接打开android.bat 文件,就会自动打开 SDK Manager.exe的界面,接着更新就可以,等到更新完了,把复制的那个 tools文件夹删除掉就OK了,这样也避免了对打开的文件进行更改的错误。
2014-10-6 解决Android SDK Manager 无法下载更新,或者更新速度超慢,或者待安装包列表不显示
http://www.cnblogs.com/tc310/archive/2012/12/21/2828450.html
还有一种方法是使用迅雷,这个也是可行的
http://blog.csdn.net/pandahsu/article/details/6007721
二、错误提示: This Android SDK requires And...te ADT to the latest version.
解决方法:
http://developer.android.com/sdk/installing/installing-adt.html
http://developer.android.com/tools/sdk/eclipse-adt.html
Download the ADT Plugin
To add the ADT plugin to Eclipse:
- 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/
Note: The Android Developer Tools update site requires a secure connection. Make sure the update site URL you enter starts with HTTPS.
- 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.
坑爹的是出现以下问题:
The operation cannot be completed. See the details.
搜了一下,方法如下:
http://blog.csdn.net/yuanbohx/article/details/6805961
http://blog.csdn.net/yuanbohx/article/details/6805961
其实就是重新安装eclipse
然后离线安装最新版本的adt,和你最近版本的sdk匹配
于是我下了这个adt:
ADT 23.0.3 (August 2014)
- Dependencies:
- Java 7 or higher is required if you are targeting the L Developer Preview.
- Java 1.6 or higher is required if you are targeting other releases.
- Eclipse Indigo (Version 3.7.2) or higher is required.
- This version of ADT is designed for use with SDK Tools r23.0.2
2015 - 1 - 17 日更新
离线更新 的话 如果你点击 check update 更新 adt 会报这个错,如下解决 rmove 这个离线 地址 即可
adt sdk eclipse 我共享出来 如下:http://yunpan.cn/QaijVp9VjYS9C 访问密码 994e
已经自动引用好了。