java.lang.RuntimeException

build\intermediates\res\flavor1debug\values is not a directory

Solutions on the web23262

  • java.lang.RuntimeException: build\intermediates\res\flavor1debug\values is not a directory
  • via Google Groups by vilas talewale, 6 months ago
    build\intermediates\res\flavor1debug\values is not a directory
  • via Google Groups by Phil Bayfield, 1 year ago
    build/intermediates/res/debug/values is not a directory
  • Stack trace

    • java.lang.RuntimeException: build\intermediates\res\flavor1debug\values is not a directory at org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:238) at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:185) 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:149) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) Caused by: java.lang.RuntimeException: build\intermediates\res\staging\debug\values is not a directory at org.robolectric.res.DocumentLoader.load(DocumentLoader.java:27) at org.robolectric.res.PackageResourceLoader.loadEverything(PackageResourceLoader.java:32) at org.robolectric.res.PackageResourceLoader.doInitialize(PackageResourceLoader.java:19) at org.robolectric.res.XResourceLoader.initialize(XResourceLoader.java:29) at org.robolectric.res.OverlayResourceLoader.doInitialize(OverlayResourceLoader.java:22) at org.robolectric.res.XResourceLoader.initialize(XResourceLoader.java:29) at org.robolectric.res.XResourceLoader.getValue(XResourceLoader.java:52) at org.robolectric.res.OverlayResourceLoader.getValue(OverlayResourceLoader.java:51) at org.robolectric.res.RoutingResourceLoader.getValue(RoutingResourceLoader.java:31) at org.robolectric.manifest.MetaData.init(MetaData.java:53) at org.robolectric.manifest.AndroidManifest.initMetaData(AndroidManifest.java:343) at org.robolectric.res.builder.DefaultPackageManager.addManifest(DefaultPackageManager.java:417) at org.robolectric.internal.ParallelUniverse.setUpApplicationState(ParallelUniverse.java:74) at org.robolectric.RobolectricTestRunner.setUpApplicationState(RobolectricTestRunner.java:421) at org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:234) ... 17 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago