android - App crashed when i build a signed APK with jsoup -


my android app crashing when build signed apk. crash not seen when did debug build. build.gradle file this:

buildtypes {        release {           minifyenabled true           proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'           signingconfig signingconfigs.config     }     debug {         debuggable true     } } 

setting minifyenabled false not correct solution, disable proguard while building release version

the reason why setting minifyenabled working because proguard might obfuscating jsoup. so, should keep minifyenabled true , include these rules jsoup in proguard-rules.txt file prevent app crashing :

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

Comments

Popular posts from this blog

How to start daemon on android by adb -

testing - Detect whether test has failed within fixture -

Angularjs unit testing - ng-disabled not working when adding text to textarea -