标签:instrument android declare 单元测试 library
在Android进行Junit单元测试的时候报以下错误:
[2015-04-06 20:26:21 - adtest] adtest does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml
是权限配置问题,需要在AndroidManifest.xml 加上2条配置信息:
<application>
<uses-library android:name="android.test.runner" />
</application>
<instrumentation android:name="android.test.InstrumentationTestRunner" android:targetPackage="com.example.adtest"></instrumentation>
does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare
标签:instrument android declare 单元测试 library
原文地址:http://blog.csdn.net/ldl22847/article/details/44905535