Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我制作了自己的 android 测试套件来测试一些功能。当我尝试在 CTS 控制台中运行此测试时,我收到此错误:
Test failed to run. Test run failed due to : null
在 ADB 日志中,我得到了这个日志:
TestLoader: Could not find class:"com.xxx.xxxxxx"
我应该在清单中定义 ApplicationTestCase 类吗?
我在清单中的应用程序标记中插入了这一行,它解决了这个问题:
<uses-library android:name="android.test.runner" />