相关疑难解决方法(0)

com.google.android.gms.internal.zzhu:找不到引用的类android.security.NetworkSecurityPolicy

我尝试使用proguard生成一个apk,但是在尝试构建时我遇到了这个错误:

Warning: com.google.android.gms.internal.zzhu: can't find referenced class android.security.NetworkSecurityPolicy

Warning: there were 3 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.         If your code works fine without the missing classes, you can suppress         the warnings with '-dontwarn' options.

(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
:app:proguardRelease FAILED
Error:Execution failed for task ':app:proguardRelease'.
java.io.IOException: Please correct the above warnings first.
Run Code Online (Sandbox Code Playgroud)

最近,我升级了我的Android SDK工具.在此之前,这个项目没有提出proguard的问题.我找到了这篇帖子(https://plus.google.com/+PaulBurke/posts/T3vmAnRP3q6),其中Oliver Renner写道:

"所以基本上下一个谷歌库可能无法升级到最新版本.它似乎还需要compileSdk 23才能在不修改的情况下使用ProGuard(警告:com.google.android.gms.internal.zzhu:can找不到引用类android.security.NetworkSecurityPolicy)"*

我更新了我的项目以使用SDK 23进行编译,但问题没有解决.

贝娄,我包含了build.gradle文件的一些部分:

compileSdkVersion 23
    buildToolsVersion "23.0.0"

    defaultConfig {
        applicationId "com.sample.sample" …
Run Code Online (Sandbox Code Playgroud)

android proguard

22
推荐指数
2
解决办法
2万
查看次数

标签 统计

android ×1

proguard ×1