Home > Mobile >  Jar package, in addition to keep the class and other classes of the full path names are confused
Jar package, in addition to keep the class and other classes of the full path names are confused

Time:09-26

Gradle 4.10.1 versions, compilation of packaging, is under the package name path be confused; After upgrading to gradle 5.4.1, in addition to keep the class and other classes of the full path names becomes A.A.A be confused. Add - keeppackagenames confusing rules will put all of the path name to keep down, also do not conform to the requirements; How to add confusing rules, for help

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
  • Related