我使用的是Windows 7和JDK 6.
我用Eclipse下载了Android SDK包,并按照说明创建了第一个Hello World应用程序.
但是,当我站在MainActiviy.java上并单击运行时,我在控制台中收到以下错误:
与adb的连接中断您可能希望从"设备"视图手动重新启动adb.
我尝试了很多我在这里看到的答案:1.重新启动adb服务器2.确保路径是正确的JDK 3.我查看了首选项,没有看到任何警告或错误.
我可以运行模拟器 - 它工作正常.但它不运行Hello World应用程序.
怎么了?
有时我的adb断开了.为什么我会这样: -
[2011-09-27 17:39:43 - adb]
[2011-09-27 17:39:43 - adb]This application has requested the Runtime to terminate it in an unusual way.
[2011-09-27 17:39:43 - adb]Please contact the application's support team for more information.
[2011-09-27 17:39:49 - DeviceMonitor]Adb connection Error:An existing connection was forcibly closed by the remote host
[2011-09-27 17:39:51 - DeviceMonitor]Connection attempts: 1
[2011-09-27 17:39:53 - DeviceMonitor]Connection attempts: 2
[2011-09-27 17:39:55 - DeviceMonitor]Connection attempts: 3
[2011-09-27 17:39:57 - DeviceMonitor]Connection attempts: 4
[2011-09-27 17:39:58 - DeviceMonitor]Connection attempts: 5
[2011-09-27 …Run Code Online (Sandbox Code Playgroud)