Proguard makes reflection with the R class in android application no longer work
问题 I have activated proguard in my project since I am trying to release this on Google Play. Even though proguard-android.txt has -keepclassmembers class **.R$* { public static <fields>; } which means it should not obfuscate the R.raw class that I need, I find that when running this code import headwayEnt.Blackhole_Darksun.R; private static final String RES_PATH = "headwayEnt.Blackhole_Darksun.R"; public static int getFileHandle(String fileName, String path) { String fullPath = RES_PATH + '$' +