I'm trying to use the shrinkResources feature.
I'm using JackCompiler
and JAVA_1_8
, and compiling the release version of the flavor named "prod".
This flavor is only used to take advantage of the better compile time when using the "dev" flavor with minSdk 21
.
There are no "flavor-specific" resources. They are all in the only common res folder.
When running the compilation I get the following error.
:app:packageProdRelease FAILED
FAILURE: Build failed with an exception.
* What went wrong: A problem was found with the configuration of task ':app:packageProdRelease'.
File '/app/build/intermediates/res/resources-prod-release-stripped.ap_' specified for property 'resourceFile' does not exist.