2016-09-06 59 views
0

我製作了自己的android測試套件來測試一些函數。 當我嘗試在CTS控制檯中運行這個測試,我得到這個錯誤:TestLoader:無法找到運行CTS的類

Test failed to run. Test run failed due to : null 

在亞行日誌,我得到這個日誌:

TestLoader: Could not find class:"com.xxx.xxxxxx" 

我應該在清單中定義ApplicationTestCase類?

回答

2

我插入應用程序標籤內這條線在我的清單,並解決了該問題:

 <uses-library android:name="android.test.runner" /> 
相關問題