java.lang.NoSuchMethodError: org.robolectric.shadows.ShadowSQLiteConnection$Connections.getConnection(J)Lcom/almworks/sqlite4java/SQLiteConnection;

GitHub | jongerrish | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    org.robolectric.shadows.ShadowSQLiteConnectionTest fails pre-L

    GitHub | 2 years ago | jongerrish
    java.lang.NoSuchMethodError: org.robolectric.shadows.ShadowSQLiteConnection$Connections.getConnection(J)Lcom/almworks/sqlite4java/SQLiteConnection;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.robolectric.shadows.ShadowSQLiteConnection$Connections.getConnection(J)Lcom/almworks/sqlite4java/SQLiteConnection;

      at org.robolectric.shadows.ShadowSQLiteConnectionTest.setUp()
    2. Roboelectric HTTP
      ShadowSQLiteConnectionTest.setUp
      1. org.robolectric.shadows.ShadowSQLiteConnectionTest.setUp(ShadowSQLiteConnectionTest.java:46)
      1 frame
    3. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3 frames
    4. JUnit
      RunAfters.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
      5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      5 frames
    5. Roboelectric
      RobolectricTestRunner.runChild
      1. org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:245)
      2. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:185)
      3. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:54)
      3 frames
    6. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      5 frames
    7. Roboelectric
      RobolectricTestRunner$1.evaluate
      1. org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:149)
      1 frame
    8. JUnit
      JUnitCore.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      2. org.junit.runners.Suite.runChild(Suite.java:128)
      3. org.junit.runners.Suite.runChild(Suite.java:24)
      4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      9. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      10. org.junit.runners.Suite.runChild(Suite.java:128)
      11. org.junit.runners.Suite.runChild(Suite.java:24)
      12. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      13. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      14. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      15. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      16. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      17. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      18. org.junit.runner.JUnitCore.run(JUnitCore.java:157)
      18 frames
    9. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
      1 frame
    10. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
      2 frames
    11. Java RT
      NativeMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      2 frames
    12. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
      1 frame