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

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>里面!

你可能感兴趣的:(does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-l)