Android obfuscate app using proguard keeps obfuscating library jars - or is it?

后端 未结 2 869
深忆病人
深忆病人 2020-12-08 03:03

I\'m new to using Proguard so I\'m probably making a newbie mistake. I\'ve got an app that after I run the release build (which uses Proguard to obfuscate) it crashes prett

2条回答
  •  隐瞒了意图╮
    2020-12-08 03:37

    I had a similar problem when proGuard encrypted the jsoup lib. I fixed it by adding the following to my proguard-rules.txt:

    -keep class org.jsoup** {
        *;
    }
    

    So the build.gradle will end up with the following section:

    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
    

提交回复
热议问题