My problem is that after I added flavors to my project the flavor with a package name different from the actual source seems to have problems with accessing the files in android_res/drawable
.
More specifically I have a html-view that calls the following image.
<img src="file:///android_res/drawable/image.png">
The image shows up in the production flavor that has the package name which is the same as the directory of the java-files but it doesn't work for the beta flavor:
productFlavors {
production {
packageName "com.company.myapp"
}
beta {
packageName "com.company.beta"
}
}
where the actual directory with the java files is
java/com/company/myapp
It is rather strange that this happens since the resources are not even in that folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With