You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
when trying to test test_release getting File does not exist error, stack trace below:
java.lang.IllegalArgumentException: File does not exist: ./android-all-5.0.0_r2-robolectric-1.jar
at org.robolectric.internal.dependency.LocalDependencyResolver.validateFile(LocalDependencyResolver.java:55)
at org.robolectric.internal.dependency.LocalDependencyResolver.getLocalArtifactUrl(LocalDependencyResolver.java:32)
at org.robolectric.internal.dependency.LocalDependencyResolver.getLocalArtifactUrls(LocalDependencyResolver.java:40)
at org.robolectric.internal.InstrumentingClassLoaderFactory.getSdkEnvironment(InstrumentingClassLoaderFactory.java:39)
at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:187)
at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:54)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:152)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at com.facebook.buck.testrunner.JUnitRunner.run(JUnitRunner.java:135)
at com.facebook.buck.testrunner.BaseRunner.runAndExit(BaseRunner.java:219)
at com.facebook.buck.testrunner.JUnitMain.main(JUnitMain.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.facebook.buck.jvm.java.runner.FileClassPathRunner.main(FileClassPathRunner.java:87)
what other configuration robolectric_test requires to make it work?
The text was updated successfully, but these errors were encountered:
raviagarwal7
changed the title
Error while running robolectric test. (java.lang.IllegalArgumentException: File does not exist: ./android-all-5.0.0_r2-robolectric-1.jar)
Error while running robolectric test. [java.lang.IllegalArgumentException: File does not exist: ./android-all-5.0.0_r2-robolectric-1.jar]
Jul 14, 2016
buck target setup:
when trying to test test_release getting File does not exist error, stack trace below:
robolectric.offline
is being set to true in buck - RobolectricTest.java#L172but we are not setting
robolectric.dependency.dir
which is required in offline mode. (http://robolectric.org/configuring/).what other configuration
robolectric_test
requires to make it work?The text was updated successfully, but these errors were encountered: