出现的异常
Test run failed: Unable to find instrumentation target package
解决办法:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="包名1"
android:versionCode="1"
android:versionName="1.0">
<instrumentation android:name="android.test.InstrumentationTestRunner"
android:targetPackage="包名2"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"> <uses-library android:name="android.test.runner"/>
</application>
</manifest>
上述代码中:如果包名1与包名2不相同,会出现标题异常.