java.lang.ExceptionInInitializerError

GitHub | jlchoike-DL | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    attempted to invoke public void org.robolectric.shadows.ShadowConfiguration.__constructor__(android.content.res.Configuration) on instance of class org.robolectric.shadows.ShadowConfiguration, but ShadowConfiguration doesn't extend ShadowConfiguration

    at android.content.res.Configuration.<init>()
  2. Android Platform
    Configuration.__staticInitializer__
    1. android.content.res.Configuration.<init>(Configuration.java:545)
    2. android.content.res.Configuration.__staticInitializer__(Configuration.java:39)
    2 frames
  3. org.robolectric.bytecode
    RobolectricInternals.classInitializing
    1. org.robolectric.bytecode.RobolectricInternals.performStaticInitialization(RobolectricInternals.java:157)
    2. org.robolectric.bytecode.ShadowWrangler.classInitializing(ShadowWrangler.java:69)
    3. org.robolectric.bytecode.RobolectricInternals.classInitializing(RobolectricInternals.java:67)
    3 frames
  4. Android Platform
    Configuration.<clinit>
    1. android.content.res.Configuration.<clinit>(Configuration.java)
    1 frame
  5. Roboelectric HTTP
    ShadowResources.setSystemResources
    1. org.robolectric.shadows.ShadowResources.setSystemResources(ShadowResources.java:85)
    1 frame
  6. Roboelectric
    RobolectricTestRunner$2.evaluate
    1. org.robolectric.internal.ParallelUniverse.setUpApplicationState(ParallelUniverse.java:82)
    2. org.robolectric.RobolectricTestRunner.setUpApplicationState(RobolectricTestRunner.java:430)
    3. org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:236)
    3 frames
  7. JUnit
    ParentRunner$2.evaluate
    1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    2. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    3. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    8 frames
  8. Roboelectric
    RobolectricTestRunner$1.evaluate
    1. org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:177)
    1 frame
  9. JUnit
    JUnitCore.run
    1. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    2. org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    2 frames
  10. IDEA
    AppMain.main
    1. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
    2. com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
    2 frames