【发布时间】:2020-01-04 12:31:51
【问题描述】:
我将 Android Studio 更新到 3.5,现在我遇到了问题
minifyEnabled true
当我尝试使用 okhttp3 发送 json 数据时,正文为空。
我尝试将这些规则添加到proguard,但问题仍然存在。
-keep class cn.pedant.SweetAlert.** { *; }
-keep class okhttp3.** { *; }
-keep interface okhttp3.** { *; }
当 minifyEnabled 为 true 并且仅当我更改版本时,我只会看到此警告。 :-|
有什么想法吗?
目前我将 minifyEnabled 设置为 false。 -_-
【问题讨论】:
标签: android android-studio proguard okhttp