小编pgr*_*eze的帖子

Android Marshmallow的ParseApacheHttpClient问题:找不到引用的方法SSLSocketFactory.getHttpSocketFactory

我正在Android Android应用程序中使用Android Marshmallow支持,但我有依赖项,它们使用不推荐使用的Apache HTTP客户端(包括Parse).

按照这里的建议,我补充说:

useLibrary 'org.apache.http.legacy'
Run Code Online (Sandbox Code Playgroud)

在我的app/build.gradle中,但我仍然无法编译apk:

:app:compileFreeStoreDebugJavaWithJavac UP-TO-DATE
:app:compileRetrolambdaFreeStoreDebug UP-TO-DATE
:app:compileFreeStoreDebugSources UP-TO-DATE
:app:proguardFreeStoreDebug
Note: there were 7 duplicate class definitions.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
Warning: com.parse.ParseApacheHttpClient: can't find referenced method 'org.apache.http.conn.ssl.SSLSocketFactory getHttpSocketFactory(int,android.net.SSLSessionCache)' in library class android.net.SSLCertificateSocketFactory
Warning: there were 1 unresolved references to library class members.
         You probably need to update the library versions.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)
Exception while processing task
java.io.IOException: Please correct the above warnings first.
    at proguard.Initializer.execute(Initializer.java:473)
    at proguard.ProGuard.initialize(ProGuard.java:233)
    at proguard.ProGuard.execute(ProGuard.java:98)
    at proguard.gradle.ProGuardTask.proguard(ProGuardTask.java:1074)
    at com.android.build.gradle.tasks.AndroidProGuardTask.doMinification(AndroidProGuardTask.java:139)
    at …
Run Code Online (Sandbox Code Playgroud)

android parse-platform

13
推荐指数
1
解决办法
1737
查看次数

标签 统计

android ×1

parse-platform ×1