If you use Eclipse, a simpler approach is to not include your external library in the test project, but rather export it in the Eclipse Project settings. This will solve the issue
Time ago, I wrote a blog post explaining this:
http://juristr.com/blog/2010/06/android-instrumentation-test/
More Related Contents:
- DexIndexOverflowException Only When Running Tests
- Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0
- How to create a signed APK file using Cordova command line interface?
- Encryption error on Android 4.2
- How can I create tests in Android Studio?
- How do I get a jacoco coverage report using Android gradle plugin 0.10.0 or higher?
- How to add external jar libraries to an android project from the command line
- Android Studio unit testing: read data (input) file
- Running a specific instrumentation unit test with Gradle
- java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation getting while running test project?
- Error executing command ‘ant’ on Mac OS X 10.9 Mavericks when building for Android with PhoneGap/Cordova
- Getting context in AndroidTestCase or InstrumentationTestCase in Android Studio’s Unit Test feature
- programmatically add id to R.id
- Android RxJava 2 JUnit test – getMainLooper in android.os.Looper not mocked RuntimeException
- How can I specify location of debug keystore for Android ant debug builds?
- Android signing with Ant
- Difference between Android Instrumentation test and Unit test in Android Studio?
- Android unit test not mocked
- Multiple Android Application Package .apk files from single source code
- How to provide data files for android unit tests
- AndroidManifest in androidTest directory being ignored
- How do I reference external jar files in a common directory (not libs) to build android project using ant?
- How to transform information to Cocos code in the Android platform [closed]
- How to transfer some data to another Fragment?
- Android setting with TextView for Hebrew text?
- android – How can I make a button flash?
- Can the Android emulator record and play back audio using pc hardware?
- SQLite Query in Android to count rows
- Communication between BroadcastReceiver and Activity – android
- Creating an android smart app banner