I have a bug in my Android Java application only in production.
When I publish my application to my phone with Android Studio, all is working fine.
When I update this application by the Play Store on the same phone, I have this error:
Process: com.iddeos.planningbuilder, PID: 31989
android.content.res.Resources$NotFoundException: Resource ID #0x0
Bug provides from this line, but I don't understand why
int iconRessource = getResources().getIdentifier("drawable/"+menu.getIcon(), "drawable", getPackageName());
Drawable image = ContextCompat.getDrawable(getApplicationContext(), iconRessource);
menuBottomConfig.add(android.view.Menu.NONE, menu.getId(), android.view.Menu.NONE, menu.getTitle()).setIcon(image);
I have foud the solution.
Bugs not provide from ressource but by obfuscation mod. Because GSON not working correctly in this mod.
A add proguard rules and its working now.