java.lang.RuntimeException

Failed to backport class: me/tatarka/sample/app/test/MainActivityInstrumentationTest

Samebug tips8

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web42681

  • via GitHub by lgawin
    , 9 months ago
    Failed to backport class: me/tatarka/sample/app/test/MainActivityInstrumentationTest
  • Failed to backport class: Example
  • via GitHub by palaima
    , 10 months ago
    Failed to backport class: com/xxx/xxx/test/ui/ScreenTest$1
  • Stack trace

    • java.lang.RuntimeException: Failed to backport class: me/tatarka/sample/app/test/MainActivityInstrumentationTest at net.orfjackal.retrolambda.Transformers.transform(Transformers.java:128) at net.orfjackal.retrolambda.Transformers.transform(Transformers.java:107) at net.orfjackal.retrolambda.Transformers.backportClass(Transformers.java:47) at net.orfjackal.retrolambda.Retrolambda.run(Retrolambda.java:77) at net.orfjackal.retrolambda.Main.main(Main.java:26) Caused by: java.lang.RuntimeException: Failed to backport lambda or method reference: me/tatarka/sample/app/test/MainActivityInstrumentationTest.lambda$testWithEspresso$1(Landroid/view/View;Landroid/support/test/espresso/NoMatchingViewException;)V (6) at net.orfjackal.retrolambda.lambdas.LambdaReifier.reifyLambdaClass(LambdaReifier.java:42) at net.orfjackal.retrolambda.lambdas.BackportLambdaInvocations$InvokeDynamicInsnConverter.backportLambda(BackportLambdaInvocations.java:171) at net.orfjackal.retrolambda.lambdas.BackportLambdaInvocations$InvokeDynamicInsnConverter.visitInvokeDynamicInsn(BackportLambdaInvocations.java:160) at net.orfjackal.retrolambda.asm.ClassReader.readCode(ClassReader.java:1452) at net.orfjackal.retrolambda.asm.ClassReader.readMethod(ClassReader.java:1017) at net.orfjackal.retrolambda.asm.ClassReader.accept(ClassReader.java:693) at net.orfjackal.retrolambda.asm.ClassReader.accept(ClassReader.java:506) at net.orfjackal.retrolambda.Transformers.lambda$transform$5(Transformers.java:107) at net.orfjackal.retrolambda.Transformers.transform(Transformers.java:124) ... 4 more Caused by: java.lang.TypeNotPresentException: Type android.support.test.espresso.ViewAssertion not present at sun.invoke.util.BytecodeDescriptor.parseSig(BytecodeDescriptor.java:85) at sun.invoke.util.BytecodeDescriptor.parseMethod(BytecodeDescriptor.java:63) at sun.invoke.util.BytecodeDescriptor.parseMethod(BytecodeDescriptor.java:41) at java.lang.invoke.MethodType.fromMethodDescriptorString(MethodType.java:1067) at net.orfjackal.retrolambda.lambdas.Types.toMethodType(Types.java:33) at net.orfjackal.retrolambda.lambdas.LambdaReifier.callBootstrapMethod(LambdaReifier.java:104) at net.orfjackal.retrolambda.lambdas.LambdaReifier.reifyLambdaClass(LambdaReifier.java:37) ... 12 more Caused by: java.lang.ClassNotFoundException: android.support.test.espresso.ViewAssertion at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at net.orfjackal.retrolambda.NonDelegatingClassLoader.loadClass(NonDelegatingClassLoader.java:27) at sun.invoke.util.BytecodeDescriptor.parseSig(BytecodeDescriptor.java:83) ... 18 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    3 times, 1 week ago
    Once, 3 weeks ago
    Unknown user
    Once, 3 weeks ago
    Unknown user
    Once, 1 month ago
    2420 more bugmates