Android 开发环境需要:Eclipse,Java环境,ADT,android SDK。 每个软件的下载地址,及详细的安装过程,可以参考网上各种文章。

我之前安装过Android开发环境,因为在安装Android SDK的时候出错,以为是GWF问题,而且因为当时有其它事情,就没有去查原因,今天,为了做个简单的程序,再次安装,遇到如下几个问题:

  1. 使用https下载出错
    运行“SDK Setup.exe”,提示:“Failed to fetch URL, reason: HTTPS SSL error. You might want to force download through HTTP in the settings.”
    按照提示, 在settings中,勾选“Force https://… sources to be fetched using http://…”,强制使用http协议,解决了问题。
  2. A folder failed to be renamed or moved
    网速特别忙,等啊等,终于下载完了,在安装的过程中提示:“-= Warning ! =-
    A folder failed to be renamed or moved. On Windows this typically means that a program is using that folder (for example Windows Explorer or your anti-virus software .) ………”。 意思说,将杀毒软件及使用“/Android SDK/tools”目录的相关程序关掉。
    我将 MaAfee杀毒软件及防火墙关掉,将windows 文件浏览器也都关掉了,进程中可能存在的“adb.exe”进程也关掉了,甚至机器都重启了好几次,都提示相同的错误。
    无可奈何,只有“/Android SDK/tools”自己可能使用这个目录了,难道是我win7 64位系统有这个问题? 痛苦中…….,安装程序是否可以不使用“/Android SDK/tools”?


    下面的6个文件,解压缩到:/Android SDK/platform/下面

    如下文件解压缩到:/Android SDK/tools/下面

    如下文件解压缩到:/Android SDK/usb_driver/下面

    如下文件解压缩到:/Android SDK/add-ons/下面


  3. emulator: ERROR: unknown virtual device name: ‘****’
    在运行程序, 在手机模拟器中查看结果的时候,发现如下错误:
    emulator: ERROR: unknown virtual device name: ‘****’
    emulator: could not find virtual device named ‘****’
    具体原因,是因为我修改了用户文档目录,修改到了F盘目录下。 我将“F:\Users\账号\”下面的“.android”复制一份到到“C:\Users\ 账号\”下即可。


android example
android example
android  example 1
android example 1


I had the same problem: the latest update failed to install because it couldn't
rename the tools folder in android-sdk-windows.  I'm using Avira antivirus and
disabling it didn't help, but I don't think it had anything to do with the AV program

Fact is, running the Android SDK setup apparently uses items in the
"android-sdk-windows\tools" directory.  I'm on Win 7 x64 so maybe that causes some
unique situation - I'm not sure.


- I made a copy of the tools folder itself (keeping it at the same directory tree
level, thus "tools" and "tools-copy" were both in the "android-sdk-windows" folder).

- I ran Android.bat from that copy

- I ran the update without problems (it updated the original,
not-being-used-at-the-moment tools folder, among whatever other items it needed to).

- I closed the SDK, deleted the folder (I had to kill the adb.exe process first - not
sure why that always persists but you can't delete the folder without doing that).

- I restarted the SDK from the normal (now-updated) tools folder.  Worked like a charm!

Note that simply killing adb.exe was NOT sufficient to get around the original
issue... only by copying the tools folder and using the copy to run Android for the
duration of the update process was enough to rectify the problem.

I hope this helps others... it's quite vexing to have to spend time resolving basic
issues like this just to run an update.

2 Replies to “Android 开发环境安装失败问题总结 win7下


电子邮件地址不会被公开。 必填项已用*标注