java.lang.IllegalArgumentException: File does not exist: ./android-all-5.0.0_r2-robolectric-1.jar

GitHub | raviagarwal7 | 7 months 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

    File does not exist: ./android-all-5.0.0_r2-robolectric-1.jar

    at org.robolectric.internal.dependency.LocalDependencyResolver.validateFile()
  2. Roboelectric
    RobolectricTestRunner.runChild
    1. org.robolectric.internal.dependency.LocalDependencyResolver.validateFile(LocalDependencyResolver.java:55)
    2. org.robolectric.internal.dependency.LocalDependencyResolver.getLocalArtifactUrl(LocalDependencyResolver.java:32)
    3. org.robolectric.internal.dependency.LocalDependencyResolver.getLocalArtifactUrls(LocalDependencyResolver.java:40)
    4. org.robolectric.internal.InstrumentingClassLoaderFactory.getSdkEnvironment(InstrumentingClassLoaderFactory.java:39)
    5. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:187)
    6. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:54)
    6 frames
  3. 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
  4. Roboelectric
    RobolectricTestRunner$1.evaluate
    1. org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:152)
    1 frame
  5. JUnit
    JUnitCore.run
    1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    2. org.junit.runners.Suite.runChild(Suite.java:128)
    3. org.junit.runners.Suite.runChild(Suite.java:27)
    4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    9. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    10. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    11. org.junit.runner.JUnitCore.run(JUnitCore.java:115)
    11 frames
  6. com.facebook.buck
    JUnitMain.main
    1. com.facebook.buck.testrunner.JUnitRunner.run(JUnitRunner.java:135)
    2. com.facebook.buck.testrunner.BaseRunner.runAndExit(BaseRunner.java:219)
    3. com.facebook.buck.testrunner.JUnitMain.main(JUnitMain.java:47)
    3 frames
  7. 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:497)
    4 frames
  8. com.facebook.buck
    FileClassPathRunner.main
    1. com.facebook.buck.jvm.java.runner.FileClassPathRunner.main(FileClassPathRunner.java:87)
    1 frame