score:1
Accepted answer
check the manifest of the test app, it should contain the following:
package definition for the test code
uses-sdk that is appropriate for your app
uses-library that links in the test runner
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>
Source: stackoverflow.com
Related Query
- Android test project cannot find app classes
- Cannot Reference LVL Android Library in my App Project
- Android Eclipse test projects cannot be used with a project being built in an Android build tree
- Proguard error during Android project export - System cannot find the specified file
- ADT Plug-in for Eclipse, cannot create Android Test Project
- Cannot find the culprit file in my android project even after expanding the main folder
- Cannot find the .apk file in my android project
- Android project cannot find third party libraries in Eclipse
- App Engine Connected Android Project - Could not find ...RequestFactorySource
- Cannot find test class in project - "The input type of the launch configuration does not exist"
- "Error: cannot find symbol" when compiling Android project using Gradle
- Cannot test my Android App in eclipse. The app won't update
- android test project does not find android-specific class
- Cannot find 'make' program error when trying to build Android app
- Find unused classes in a Java Eclipse project
- Running Gradle project via Eclipse errors "system Cannot find System Java Compiler"
- Can't run JUnit 4 test case in Eclipse Android project
- android.os.Bundle cannot be resolved in libgdx Android project
- "Selection cannot be launched and there are no recent launches” when Eclipse for Android Project Dev
- Cannot create a new Android Project using Eclipse
- Accessing resources in an android test project
- Import Android Test Project into Eclipse from Version Control
- Android Test Project Directory Structure When Using Eclipse
- Cannot use external libraries for google app engine java project
- Maven compile gives: Cannot find symbol - For a class sitting in the same app
- Cannot Add Library to Android Project in Eclipse
- "Can't find API database; API check was not performed" in Android App SDK with Eclipse
- Cannot run Android project in Eclipse despite no errors
- Cannot import google cloud endpoints client library class in Android project
- Writing Gradle script to run unit test cases for Eclipse Android Test project
More Query from same tag
- Android SDK Samples Contain Many Errors in Eclipse
- Open method declaration in Eclipse
- Using Intel-x86 Atom Emulator
- PrintWriter not writing to the file but I closed the writer? (java)
- eclipse jboss 7.1 plugin
- Java: Is it possible to "simulate" the feature of default argument values (like C++, Python) via custom annotations?
- gurobi.GRBException: No Gurobi license found
- firefox-esque tab groups for eclipse
- Automation : Move files from source folder to destination folder one by one and delete the file from source folder
- background colour of popup info box in eclipse
- How to send random class to the new method as an argument
- “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G
- NoClassDefError while doing Google places in android
- debugging global variable in eclipse (C/C++)
- double quote (") is replaced by @ in eclipse IDE
- setClassLoader() Java
- hello every one can any body help me to fix this?
- "Source folder is not a Java project" error in eclipse
- Eclipse editor won't open
- C++ code doesn't run while using fftw library
- Java program compiles in eclipse but not netbeans?
- Can't Pass the postion of a listview to second activity?
- How to make RSS fead reader for Eclipse
- Maven jar dependency not found at runtime by OSGi environment
- Using Environment.getExternalStorageDirectory().getAbsolutePath() for setting path
- Linphone Android Import and Build
- Cannot see primefaces components in visual tab of eclipse
- no viable overloaded '=' and inheritance
- Running an Ant-builded project as web-application
- Is it possible to configure Eclipse to show lines between brackets?