简体   繁体   English

具有Android应用程序的Proguard返回错误

[英]Proguard with an Android app returns error

The project.properties : project.properties

proguard.config=${sdk.dir}/tools/proguard/proguard-android-optimize.txt:proguard-project.txt

[edit] according to : http://sourceforge.net/p/proguard/discussion/182456/thread/e4d73acf [edit]根据: http : //sourceforge.net/p/proguard/discussion/182456/thread/e4d73acf

using -keepnames class com.shaded.fasterxml.jackson.** { *; 使用-keepnames类com.shaded.fasterxml.jackson。** {*; } }

compiled is ok, finally..... 编译没问题,最后.....

According to your exception content, I guess it might be android.os.Bundle 's obfuscation problem. 根据您的异常内容,我想可能是android.os.Bundle的混淆问题。 Try adding 尝试添加

-keep class * implements android.os.Parcelable {
    public static final android.os.Parcelable$Creator *;
}

to your progard file.If it still not work, show us more about the exception info plz. 到您的progard文件。如果仍然无法运行,请向我们显示有关异常信息的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM