java.lang.NoClassDefFoundError: org/robolectric/shadows/ShadowContext

GitHub | jongerrish | 4 months ago
  1. 0

    GitHub comment 2613#240414514

    GitHub | 4 months ago | jongerrish
    java.lang.NoClassDefFoundError: org/robolectric/shadows/ShadowContext
  2. 0

    Not compatible with android plugin 1.5.0's data binding

    GitHub | 1 year ago | brianguertin
    android.view.InflateException: XML file build/intermediates/res/merged/debug/layout/account.xml line #-1 (sorry, not yet implemented): Error inflating class layout
  3. 0

    Testing NoClassDefFoundError rx/Observable$OnSubscribe

    Stack Overflow | 4 months ago | MAOL
    java.lang.NoClassDefFoundError: rx/Observable$OnSubscribe
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    3.1 release?

    Google Groups | 10 months ago | Michael Grafton
    java.lang.BootstrapMethodError: call site initialization exception
  6. 0

    NoClassDefFoundError when trying to test Android app with Gradle, Robolectric and Travis CI

    Stack Overflow | 2 years ago | a11n
    java.lang.ClassNotFoundException: android.support.v4.view.OnApplyWindowInsetsListener

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      org.robolectric.shadows.ShadowContext

      at org.robolectric.internal.bytecode.InstrumentingClassLoader.getByteCode()
    2. Roboelectric
      InstrumentingClassLoader.loadClass
      1. org.robolectric.internal.bytecode.InstrumentingClassLoader.getByteCode(InstrumentingClassLoader.java:192)
      2. org.robolectric.internal.bytecode.InstrumentingClassLoader.findClass(InstrumentingClassLoader.java:147)
      3. org.robolectric.internal.bytecode.InstrumentingClassLoader.loadClass(InstrumentingClassLoader.java:122)
      3 frames
    3. org.robolectric.shadows
      ShadowLocalBroadcastManager.getInstance
      1. org.robolectric.shadows.support.v4.ShadowLocalBroadcastManager.shadowOf(ShadowLocalBroadcastManager.java:42)
      2. org.robolectric.shadows.support.v4.ShadowLocalBroadcastManager.getInstance(ShadowLocalBroadcastManager.java:33)
      2 frames
    4. Android Support v4
      LocalBroadcastManager.getInstance
      1. android.support.v4.content.LocalBroadcastManager.getInstance(LocalBroadcastManager.java)
      1 frame
    5. UI.ProductDetail
      ProductStampsTest.setUp
      1. UI.ProductDetail.ProductStampsTest.setUp(ProductStampsTest.java:71)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    7. JUnit
      RunAfters.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      5 frames
    8. Roboelectric
      RobolectricTestRunner.runChild
      1. org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:250)
      2. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:176)
      3. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:49)
      3 frames
    9. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      5 frames
    10. Roboelectric
      RobolectricTestRunner$1.evaluate
      1. org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:142)
      1 frame
    11. JUnit
      JUnitCore.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      2. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      2 frames
    12. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
      1 frame
    13. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
      2 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    15. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      1 frame