does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-l

来源:互联网 发布:跨数据库 sql语句 编辑:程序博客网 时间:2024/06/11 09:44

Android junit单元测试

错误原信息:

junittest does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml


分析:


在 AndroidManifest.xml文件中没有配置

<uses-library android:name="android.test.runner" />

注意上面这句话的配置在<application></application>里面!

原创粉丝点击