0

我在 Eclipse 上制作了一个应用程序,我想测试它是否有效。该应用程序已安装在模拟器中,但在运行时一直失败。我检查了我的代码,似乎没有任何问题。

这是错误消息:

[2012-12-01 04:05:14 - RSSReader] Android Launch!
[2012-12-01 04:05:14 - RSSReader] adb is running normally.
[2012-12-01 04:05:14 - RSSReader] Performing android.test.InstrumentationTestRunner JUnit launch
[2012-12-01 04:05:14 - RSSReader] Automatic Target Mode: Preferred AVD 'emu7' is  available on emulator 'emulator-5554'
[2012-12-01 04:05:14 - RSSReader] Uploading RSSReader.apk onto device 'emulator-5554'
[2012-12-01 04:05:17 - RSSReader] Installing RSSReader.apk...
[2012-12-01 04:05:26 - RSSReader] Success!
[2012-12-01 04:05:26 - RSSReader] Launching instrumentation android.test.InstrumentationTestRunner on emulator-5554
[2012-12-01 04:05:26 - RSSReader] Failed to launch test

这是我从 LogCat 得到的异常消息:

E/StrictMode(646): at java.lang.Thread.run(Thread.java:856)

我已经研究了几个小时,但我没有找到任何解决方案,也没有找到导致此错误的原因 >_<

4

1 回答 1

0

Open command prompt and reset the adb by

adb kill-server
adb start-server

If you still cannot get your application to run

Goto the devices tab on eclipse and hit the drop down arrow and select reset adb

Window -> Show View -> Devices

于 2012-11-30T20:43:51.383 回答