Android - Proguard with httpcore and httpmime using Android Studio and Gradle

后端 未结 2 829
长发绾君心
长发绾君心 2021-02-07 14:12

I\'m developing an app with Android Studio 1.0.2 and Gradle 1.0.0 using the Apache libraries httpmime and httpcore for multipart entities. Here\'s my <

2条回答
  •  误落风尘
    2021-02-07 14:34

    Try This

    -dontwarn org.apache.commons.**
    -keep class org.apache.http.** { *; }
    -dontwarn org.apache.http.**
    -dontwarn com.squareup.okhttp.**
    -dontwarn okio.**
    -dontwarn retrofit2.**
    -keep class retrofit2.** { *; }
    

提交回复
热议问题