score:1

Accepted answer

check the manifest of the test app, it should contain the following:

  1. package definition for the test code

  2. uses-sdk that is appropriate for your app

  3. uses-library that links in the test runner

  4. instrumentation with link to the app code

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.test"      <!-- package of the test code -->
    android:versioncode="1"
    android:versionname="1.0" >
    
    <uses-sdk
        android:minsdkversion="8"
        android:targetsdkversion="17" />
    
    <instrumentation
        android:name="android.test.instrumentationtestrunner"
        android:targetpackage="com.example.app" />      <!-- package of the app code -->
    
    <application android:allowbackup="false">
        <!-- linkage for the test runner -->
        <uses-library android:name="android.test.runner" />     
    </application>
    


Related Query

More Query from same tag