无法使用proguard enable生成我的APK

时间:2017-07-01 01:32:13

标签: android proguard

我无法生成我签名的apk告诉我这个警告用Facebook和proguard-rules.pro中的配置Facebook没有帮助

Warning:Exception while processing task java.io.IOException: proguard.ParseException: Expecting java type before ';' in line 37 of file '/Users/ederpadilla/Downloads/driveappuble-drive-android-484‌​430cd00e7/app/progua‌​rd-rules.pro' 

Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. > Job failed, see logs for details
第37行,我有:

-keepnames class com.fasterxml.jackson.databind.** { ; }

enter image description here

1 个答案:

答案 0 :(得分:0)

错误表明您缺少要保留的类型,要将类名保留在com.fasterxml.jackson.databind包下(请注意*):

-keepnames class com.fasterxml.jackson.databind.** { *; }