2016-11-15 5 views
3

Retrofit 2.1.0 및 OkHttp 3.4.2를 사용하여 앱을 만들고 있습니다. 다음과 같이Proguard 및 OkHttp 3.0 프로토콜 예외 :

HTTP FAILED: java.net.ProtocolException: Too many follow-up requests: 21 

OkHttp에 대한 나의 Proguard와 규칙은 다음과 같습니다 : minifyEnabled와 디버그 모드에서

완벽하지만 곧 나는 다음과 같은 예외가 true로 minifyEnabled의 변화에 ​​따라 작품 거짓 모든 설정

-keep class com.squareup.okhttp3.** { 
    *; 
} 
-dontwarn okhttp3.** 
-dontwarn okio.** 

이 예외가 throw 된 이유를 이해할 수 없으며 응용 프로그램이 21 개의 후속 요청을하는 것으로 보이는 이유를 알 수 없습니다. 누구든지 나를 도울 수 있습니까? UR 난독 역할에

답변

-1

사용 생 :

-dontwarn com.squareup.okhttp.internal.huc.** 
-dontwarn com.squareup.okhttp.** 
-dontwarn com.squareup.okhttp3.** 
-dontwarn okio.** 
-dontwarn retrofit2.** 
-dontwarn org.codehaus.mojo.** 
-keep class retrofit2.** { *; } 
-keepattributes Signature 
-keepattributes Exceptions 
-keepattributes *Annotation*