日期:2014-05-16  浏览次数:20541 次

android环境配置(adb问题)

android环境配置步骤:http://developer.android.com/sdk/installing.html(官方文档,我就不翻译了)

中间遇到的问题:

1.myelipse兼容性不好,尤其我用的是7.0,建议新手使用推荐的elipse classical

2.运行helloworld程序时提示错误:

[2012-05-31 21:13:58 - HelloAndorid] The connection to adb is down, and a severe error has occured.

[2012-05-31 21:13:58 - HelloAndorid] You must restart adb and Eclipse.

[2012-05-31 21:13:58 - HelloAndorid] Please ensure that adb is correctly located at 'C:\android-sdk\platform-tools\adb.exe' and can be executed.

搜索到的解决方案:

?

?

Try below steps:

  1. Close the Eclipse if running
  2. Go to the Android SDK tools directory in Command Prompt
  3. type?adb kill-server
  4. then type?adb start-server
  5. No error message is thrown while starting ADB server, then adb is started successfully.
  6. Now you can start Eclipse again.

it worked for me this way, Eclipse should be closed before issuing these commands.

运行第四步时命令行提示ADB server didn't ACK

有人的解决方案说:要关闭任务管理其中的adb.exe,我里面压根没有。后来经过种种尝试,想到我安装了豆瓣夹,而网上有的方案和这个有关系(我并没有运行,只是安装了)

于是我删掉了豆瓣夹,于是,问题解决!!!