進行混淆打包時,出現okhttp的相關混淆錯誤問題,錯誤提示okhttp中的annotation等類無法關聯到。
解決方法:
在混淆文件 proguard-rules.pro 中添加:
-dontwarn okio.**
-dontwarn javax.annotation.Nullable
-dontwarn javax.annotation.ParametersAreNonnullByDefault
解決方法:
在混淆文件 proguard-rules.pro 中添加:
-dontwarn okio.**
-dontwarn javax.annotation.Nullable
-dontwarn javax.annotation.ParametersAreNonnullByDefault