Proguard obfuscates directories, so if you are looking for android_res / raw, this is probably not called that anymore!
You can add rules to the proguard.cfg file in your project, which will make it skip specific files. But in this case, moving your raw resource to the resource folder will do the trick.
The problem is that Webkit FileLoader will try to load your R $ drawable class using reflection. If you do not add the keep rule to the proguard.cfg file, this class will be renamed, so Webkit will not be able to load your resource. ( Adapted from Prohibit Proguard from deleting certain drawings ).
That's why Android uses the R class naming system for resources - a unique search identifier instead of linking to files by their location
By placing the file in the resource folder, you bypass the R class reference system, and everything should work fine.
You must transfer the website.html file to the resources folder and call:
mv.loadUrl("file:///android_asset/wesite.html");
As suggested by the link above, it should be possible to add the following rule to your Proguard.cfg file so that the resource location is missed instead:
-keepclassmembers class **.R$* { public static <fields>; } -keep class **.R$*
Calm down that obfuscation works the way it does for some reason!
Hope this helps
biddulph.r Aug 24 2018-12-12T00: 00Z
source share