I’m new to proguard, and developing android app, after building with default android proguard config file(from sdk), nothing works, my assumption is related to code that finds resources on R file in runtime(yes ugly scanning file and search for resource id’s).
I couldn’t understand from proguard documentation how to prevent a file from being proccessed by progurad.
I think best way to learn why my app is failing is make proguard do nothing for start and then make it shrink specific stuff one by one.
So what I wanna know is how can I tell proguard to keep all my classes (even the unreachable code)(Is this even possible?).
and afterwards(hopfully my app wil work) telling him to shrink and obfuscate specific classes.
The error I get is file not found exception when trying yo load dynamically the R$id file.
In your
proguard.cfg, you can force Proguard to keep certain classes:or even an entire package:
You will certainly have to do this for classes that are only referenced from an XML file.