Skip to content

Instantly share code, notes, and snippets.

@RobGThai
Created January 8, 2014 03:58
Show Gist options
  • Save RobGThai/8311559 to your computer and use it in GitHub Desktop.
Save RobGThai/8311559 to your computer and use it in GitHub Desktop.
Error log when run Test application using GoogleInstrumentationTestRunner and Espresso.
01-08 10:41:37.473 8095-8095/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to instantiate instrumentation ComponentInfo{com.app.dealfish.main/com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner}: java.lang.ClassNotFoundException: Didn't find class "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner" on path: /system/framework/android.test.runner.jar:/data/app/com.app.dealfish.main-1.apk:/data/app/com.app.dealfish.main-1.apk
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4333)
at android.app.ActivityThread.access$1300(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner" on path: /system/framework/android.test.runner.jar:/data/app/com.app.dealfish.main-1.apk:/data/app/com.app.dealfish.main-1.apk
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4330)
            at android.app.ActivityThread.access$1300(ActivityThread.java:141)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:5041)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
            at dalvik.system.NativeStart.main(Native Method)
@Sushisugre
Copy link

Hi. Got any progress with this error?
I saw the save issue with expresso 1.1

@r-gurzkowski
Copy link

Same issue here, any progress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment