小编Bod*_* Hu的帖子

Android-Studio-1.2.RC在Square的Okio库参考上的Proguard警告

与Android Studio:1.2.RC

我在.gradle中启用了proguard:```

minifyEnabled=true
Run Code Online (Sandbox Code Playgroud)

and added these rules to my proguard-rules.pro:

-dontwarn com.squareup.**
-dontwarn okio.**
Run Code Online (Sandbox Code Playgroud)

and added these lint rules to my .gradle file:

warningsAsErrors false
abortOnError false
disable 'InvalidPackage'
Run Code Online (Sandbox Code Playgroud)

```

但是当我尝试在调试模式下运行应用程序时,我仍然会收到这些警告:

```
Warning: okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
Warning: okio.Okio: can't find referenced class java.nio.file.Files
Warning: okio.Okio: can't find referenced class java.nio.file.Files
Warning: okio.Okio: can't find referenced class java.nio.file.Files
Warning: okio.Okio: can't find referenced class java.nio.file.Path
Warning: okio.Okio: can't find referenced class java.nio.file.OpenOption
Warning: okio.Okio: can't find referenced …
Run Code Online (Sandbox Code Playgroud)

android proguard square android-studio okio

8
推荐指数
2
解决办法
6754
查看次数

标签 统计

android ×1

android-studio ×1

okio ×1

proguard ×1

square ×1