工程build apk时报错
Error:11:23:00.724 [ERROR] [system.err] Warning: okhttp3.logging.HttpLoggingInterceptor: can't find referenced class okhttp3.internal.http.HttpEngine
11:23:00.724 [ERROR] [system.err] Warning: okhttp3.logging.HttpLoggingInterceptor: can't find referenced class okhttp3.internal.http.HttpEngine
11:23:00.724 [ERROR] [system.err] Warning: okhttp3.logging.HttpLoggingInterceptor$Logger$1: can't find referenced class okhttp3.internal.Platform
11:23:00.724 [ERROR] [system.err] Warning: okhttp3.logging.HttpLoggingInterceptor$Logger$1: can't find referenced class okhttp3.internal.Platform
11:23:00.724 [ERROR] [system.err] Warning: okhttp3.logging.HttpLoggingInterceptor$Logger$1: can't find referenced class okhttp3.internal.Platform
11:23:02.225 [ERROR] [system.err] Warning: there were 5 unresolved references to classes or interfaces.
混淆配置文件中增加:
-keep class okhttp3.** { *; }
-keep interface okhttp3.** { *; }
-dontwarn okhttp3.**
运行,ok了