parse.com - ProGuard, Parse Exception, NoSuchMethodError: android.net.SSLCertificateSocketFactory.getHttpSocketFactory -
parse.com - ProGuard, Parse Exception, NoSuchMethodError: android.net.SSLCertificateSocketFactory.getHttpSocketFactory -
my app runs correctly on release mode if disable proguard. whenever enable proguard, crashes. have changed proguard-project.txt accordingly.
here log got:
> 10-17 08:31:42.705: e/androidruntime(20674): fatal exception: thread-2016 10-17 08:31:42.705: e/androidruntime(20674): java.lang.exceptionininitializererror 10-17 08:31:42.705: e/androidruntime(20674): @ com.parse.parse.initialize(unknown source) 10-17 08:31:42.705: e/androidruntime(20674): @ com.myapp.android.view.l.run(unknown source) 10-17 08:31:42.705: e/androidruntime(20674): @ java.lang.thread.run(thread.java:864) 10-17 08:31:42.705: e/androidruntime(20674): caused by: java.lang.nosuchmethoderror: android.net.sslcertificatesocketfactory.gethttpsocketfactory 10-17 08:31:42.705: e/androidruntime(20674): @ com.parse.parserequest.newhttpclient(unknown source) 10-17 08:31:42.705: e/androidruntime(20674): @ com.parse.parserequest.<clinit>(unknown source) 10-17 08:31:42.705: e/androidruntime(20674): ... 3 more
here config in proguard-project.txt
-keep class com.parse.**{ *; } -dontwarn com.parse.** -keep public class android.net.**{ *; } -dontwarn android.net.**
i added 2 lines, , solved.
-dontwarn org.apache.http.** -keep class org.apache.http.** { *; }
android parse.com proguard
Comments
Post a Comment