Android Studio consumerProguardFiles for the library doesn't work

前端 未结 2 1625
余生分开走
余生分开走 2021-01-22 07:23

I\'d like to use proguard on my library, but the file (rules) should be set inside the library. That means I don\'t want to set the rules w(hich belong to the library) explicitl

2条回答
  •  难免孤独
    2021-01-22 07:53

    Ok, since proguard might be eating up your classes, try something like this in your app's proguard-rules.pro file:

    keepclass my.library.package.name.** { *;}
    

    that should tell proguard to save all classess from my.library.package.name so hopefully they won't be missing anymore.

提交回复
热议问题