1
我正在嘗試爲我的Android活動設置一個測試項目。我一直沿着這裏的方向:http://mobile.tutsplus.com/tutorials/android/android-sdk-junit-testing/和這裏:http://developer.android.com/tools/testing/testing_android.html。無法運行測試項目
當我運行一個Android JUnit測試,我得到:
[2014-01-22 10:04:37 - AIR_ActivityTest] ------------------------------
[2014-01-22 10:04:37 - AIR_ActivityTest] Android Launch!
[2014-01-22 10:04:37 - AIR_ActivityTest] adb is running normally.
[2014-01-22 10:04:37 - AIR_ActivityTest] Performing android.test.InstrumentationTestRunner JUnit launch
[2014-01-22 10:04:44 - AIR_ActivityTest] Uploading AIR_ActivityTest.apk onto device 'TA5970MGMA'
[2014-01-22 10:04:44 - AIR_ActivityTest] Installing AIR_ActivityTest.apk...
[2014-01-22 10:04:45 - AIR_ActivityTest] Success!
[2014-01-22 10:04:45 - AIR_ActivityTest] Project dependency found, installing: AIR_Activity
[2014-01-22 10:04:45 - AIR_Activity] Uploading AIR_Activity.apk onto device 'TA5970MGMA'
[2014-01-22 10:04:46 - AIR_Activity] Installing AIR_Activity.apk...
[2014-01-22 10:04:49 - AIR_Activity] Success!
[2014-01-22 10:04:49 - AIR_ActivityTest] Launching instrumentation android.test.InstrumentationTestRunner on TA5970MGMA
[2014-01-22 10:04:49 - AIR_ActivityTest] Failed to launch test
我坐上模擬器和電話上的同樣的錯誤。我沒有看到任何我認爲在logcat中證明的東西。我不知道還有什麼可以看的。