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
Post a Comment