相关疑难解决方法(0)

如何设置Jackson JSON处理器的PROGUARD?

我正在为我的app使用Jackson JSON处理器.包括这个使用

compile 'com.fasterxml.jackson.core:jackson-databind:2.4.2'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.4.2'.
Run Code Online (Sandbox Code Playgroud)

我的proguard配置是.

## BEGIN -- Google Play Services proguard.txt
-keep class * extends java.util.ListResourceBundle {
    protected java.lang.Object[][] getContents();
}
# Keep SafeParcelable value, needed for reflection. This is required to support backwards
# compatibility of some classes.
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
    public static final *** NULL;
}
# Keep the names of classes/members we need for client functionality.
-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
    @com.google.android.gms.common.annotation.KeepName *;
}
# Needed for Parcelable/SafeParcelable Creators …
Run Code Online (Sandbox Code Playgroud)

android proguard gradle jackson android-studio

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

标签 统计

android ×1

android-studio ×1

gradle ×1

jackson ×1

proguard ×1