现在,ProGuard的德precated,我们有再压缩应用程序操作建议的替代,而不是,我碰到乱舞破裂的老问题(再次)。在过去的一个排除可以添加到用于乱舞库proguard.cfg文件。不过,我一直无法找到相应的配置文件做同样的缩小系统。
如何配置的Android工作室/缩减大小的电流(1.0RC2)版本排除乱舞库(com.flurry。**)?
修改
proguard.cfg有乱舞的支持以下内容:
-keep类com.flurry ** {*。 }-dontwarn com.flurry。**-keepattributes *注释*,EnclosingMethod-keepclasseswithmembers类* {公众和LT; INIT>(android.content.Context,android.util.AttributeSet,INT);}
解决方案
这已经改变了(到目前为止)是gradle这个选项的名称(从 runProguard
的唯一一件事到 minifyEnabled
) - 一切是一样的。这意味着您可以继续通过 proguardFile
选项,之前排除乱舞库来传递自己的ProGuard配置文件。
Now that proguard is deprecated and we have the "minify" app operation as the suggested replacement instead, I've run into the old problem (again) of Flurry breaking. In the past an exclusion could be added to the proguard.cfg file for the Flurry libraries. However, I've been unable to find the appropriate configuration file to do the same for the minify system.
How do I configure the current (1.0RC2) version of Android Studio/Minify to exclude the Flurry libraries (com.flurry.**)?
edit
proguard.cfg has the following for Flurry support:
-keep class com.flurry.** { *; }
-dontwarn com.flurry.**
-keepattributes *Annotation*,EnclosingMethod
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
解决方案
The only thing that has changed (so far) is the name of the gradle option (from runProguard
to minifyEnabled
) - everything else is the same. This means you can continue to pass your own proguard configuration files via the proguardFile
option to exclude Flurry libraries as before.
上一篇:错误充气类RecyclerView错误、RecyclerView
下一篇:commandinfokationfailure,任何人都知道如何解决这个bug?如何解决、commandinfokationfailure、bug