Eclipse:“设备”视图中的未知设备

时间:2014-01-26 00:02:54

标签: android eclipse android-emulator

在某些时候,尝试在模拟器上运行一个应用程序后我已经提前打开了,在启动时,它显示了这一点:

  

enter image description here

我只启动了一个模拟器,第二个。第一个带有警示标志的地方突然出现了。我甚至不拥有物理Android设备。

好的,我选择了正确的。之后决定检查设备视图,看起来像这样:

  

enter image description here

在任何地方都没有其他任何迹象可以找到(至少在我看来)。但它很烦人。任何人都可以弄清楚它来自哪里以及如何摆脱它?

更新:

现在我甚至无法在正在运行的模拟器上启动应用程序(从控制台登录),以下是错误日志:

[2014-01-26 15:35:12 - JavaBook] Android Launch!
[2014-01-26 15:35:12 - JavaBook] adb is running normally.
[2014-01-26 15:35:12 - JavaBook] Performing kt.play.javabook.MainActivity activity launch
[2014-01-26 15:35:12 - JavaBook] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2014-01-26 15:35:15 - JavaBook] Uploading JavaBook.apk onto device 'emulator-5556'
[2014-01-26 15:36:20 - JavaBook] Installing JavaBook.apk...
[2014-01-26 15:38:20 - JavaBook] Success!
[2014-01-26 15:38:20 - JavaBook] Starting activity kt.play.javabook.MainActivity on device emulator-5556
[2014-01-26 15:38:21 - JavaBook] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=kt.play.javabook/.MainActivity }
[2014-01-26 15:42:21 - JavaBook] ------------------------------
[2014-01-26 15:42:21 - JavaBook] Android Launch!
[2014-01-26 15:42:21 - JavaBook] adb is running normally.
[2014-01-26 15:42:21 - JavaBook] Performing kt.play.javabook.MainActivity activity launch
[2014-01-26 15:42:21 - JavaBook] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2014-01-26 15:42:39 - JavaBook] Uploading JavaBook.apk onto device 'emulator-5556'
[2014-01-26 15:44:00 - JavaBook] Failed to install JavaBook.apk on device 'emulator-5556': timeout
[2014-01-26 15:44:00 - JavaBook] Launch canceled!
[2014-01-26 15:44:22 - JavaBook] ------------------------------
[2014-01-26 15:44:22 - JavaBook] Android Launch!
[2014-01-26 15:44:22 - JavaBook] adb is running normally.
[2014-01-26 15:44:22 - JavaBook] Performing kt.play.javabook.MainActivity activity launch
[2014-01-26 15:44:22 - JavaBook] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2014-01-26 15:44:24 - JavaBook] Uploading JavaBook.apk onto device 'emulator-5556'
[2014-01-26 15:45:44 - JavaBook] Failed to install JavaBook.apk on device 'emulator-5556': timeout
[2014-01-26 15:45:44 - JavaBook] Launch canceled!
[2014-01-26 15:45:51 - JavaBook] ------------------------------
[2014-01-26 15:45:51 - JavaBook] Android Launch!
[2014-01-26 15:45:51 - JavaBook] adb is running normally.
[2014-01-26 15:45:51 - JavaBook] Performing kt.play.javabook.MainActivity activity launch
[2014-01-26 15:45:51 - JavaBook] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2014-01-26 15:45:57 - JavaBook] Uploading JavaBook.apk onto device 'emulator-5556'
[2014-01-26 15:47:26 - JavaBook] Failed to install JavaBook.apk on device 'emulator-5556': timeout
[2014-01-26 15:47:26 - JavaBook] Launch canceled!

另外:LogCat完全忽略正在运行的模拟器5556,但是,当我尝试“停止进程”时,那个带有问号的属于5554的那个,LogCat被所有人填满了各种各样的垃圾。

并且:当我尝试telnet到localhost 5554时,它通知我“无法打开与主机的连接,在端口5554上:连接失败”。我可以telnet到5556(当然,当它正在运行时)。

2 个答案:

答案 0 :(得分:0)

您是否已启动模拟器,将其关闭,然后启动第二个模拟器?如果是这样,第一个仿真器可能永远不会完全关闭。

您可以在Windows任务管理器中查看是否有多个模拟器实例

答案 1 :(得分:0)

有些时候,当我启动环境时,我无法将我的应用程序从eclipse部署到我的Android设备。 然后,我运行此代码并正常工作:

adb kill-server
sudo adb start-server