java.lang.RuntimeException: build\intermediates\res\flavor1debug\values is not a directory


Solutions on the web6

Solution icon of github
build\intermediates\res\flavor1debug\values is not a directory

Solution icon of googlegroups
via Google Groups by vilas talewale, 9 months ago
build\intermediates\res\flavor1debug\values is not a directory

Solution icon of googlegroups
via Google Groups by Phil Bayfield, 1 year ago
build/intermediates/res/debug/values is not a directory

Solution icon of github
via GitHub by zhairui
, 4 months ago
build\intermediates\res\debug\values is not a directory

Solution icon of github
/Users/mtotschnig/entwicklung/AndroidStudioAndRobolectric/app/build/intermediates/bundles/debug/res/values is not a directory

Solution icon of github
./../../volley/res/values is not a directory

Stack trace

java.lang.RuntimeException: build\intermediates\res\flavor1debug\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)
	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 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)

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

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago