安卓模拟器一直找不到

3
我有两台电脑(都是运行Windows 7的),在这两台电脑上都安装了Eclipse。我最近更新了这两台电脑上的Android SDK。
笔记本电脑工作正常,并在启动我的应用程序时在控制台窗口中显示以下内容:
[2011-01-20 11:44:28 - Balloons] Android Launch!
[2011-01-20 11:44:28 - Balloons] adb is running normally.
[2011-01-20 11:44:28 - Balloons] Performing org.sherti.balloons.balloons activity launch
[2011-01-20 11:44:28 - Balloons] Automatic Target Mode: Preferred AVD 'AVD2.3-800' is not available. Launching new emulator.
[2011-01-20 11:44:28 - Balloons] Launching a new emulator with Virtual Device 'AVD2.3-800'
[2011-01-20 11:44:30 - Balloons] New emulator found: emulator-5554
[2011-01-20 11:44:30 - Balloons] Waiting for HOME ('android.process.acore') to be launched...
[2011-01-20 11:45:09 - Balloons] HOME is up on device 'emulator-5554'

桌面无法正常工作,并在控制台窗口中显示:

[2011-01-20 11:49:19 - HelloAndroid] ------------------------------
[2011-01-20 11:49:19 - HelloAndroid] Android Launch!
[2011-01-20 11:49:19 - HelloAndroid] adb is running normally.
[2011-01-20 11:49:19 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2011-01-20 11:49:19 - HelloAndroid] Automatic Target Mode: Preferred AVD 'AVD2.3-480' is not available. Launching new emulator.
[2011-01-20 11:49:19 - HelloAndroid] Launching a new emulator with Virtual Device 'AVD2.3-480'

就是这样。我可以一直等待,“找到新模拟器”这一行从未显示。模拟器显示了正确的AVD,但应用程序从未上传到其中。在CMD窗口中执行“adb devices”会显示“已连接设备列表”,但从未显示任何设备。

有什么想法吗?谢谢

1个回答

0

最近我也遇到了同样的问题,而且我也不知道问题出在哪里。但是不知怎么的,我找到了解决方法。项目中有一个名为lint.xml的文件,当我删除它时,问题就得到了解决。我不知道那个文件具体作用是什么,但是删除它确实解决了问题。记住,在删除该文件后,您可能需要重新启动Eclipse。


不是我的问题。我的项目中没有 lint.xml 文件。 - Andrey Regentov
好的,从任务管理器中结束adb.exe进程并重新启动eclipse。还有一件事,您可能需要增加adb超时时间,在eclipse中:窗口>首选项>Android>DDMS,其中默认超时值为5000,将其增加到10000,然后重新启动eclipse。 - Usama Sarwar
adb kill-serverstart-server用于帮助解决此类问题。现在可以通过adb kill-server然后adb devices来解决。 - Andrey Regentov
很好...如果它对你有帮助,请将答案标记为已接受... :-) - Usama Sarwar
不是我提出的问题,所以我不能 :) - Andrey Regentov

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接