CodePudding user response:
Narrowing the scope of the keep, keep to the word package level, for example, if it is too big, to keep the class level?CodePudding user response:
To check the reason, is Androig gradle plug-in after upgrading to 3.4.0 version, the R8 caused by default in the start state, the R8 is shut can solve# Disables the R8 for Android Library modules only.
Android. EnableR8. Libraries=false
# Disables the R8 for all modules.
Android. EnableR8=false