android - Proguard 错误,无法导出应用程序

标签 android proguard

[2013-01-25 15:20:55 - CQAQI] Proguard returned with error code 1. See console
[2013-01-25 15:20:55 - CQAQI] Note: there were 208 duplicate class definitions.
[2013-01-25 15:20:55 - CQAQI] Warning: android.support.v4.view.ViewCompatJellybeanMr1: can't find referenced method 'int getLabelFor()' in class android.view.View
[2013-01-25 15:20:55 - CQAQI] Warning: android.support.v4.view.ViewCompatJellybeanMr1: can't find referenced method 'void setLabelFor(int)' in class android.view.View
[2013-01-25 15:20:55 - CQAQI] Warning: there were 2 unresolved references to program class members.
[2013-01-25 15:20:55 - CQAQI]          Your input classes appear to be inconsistent.
[2013-01-25 15:20:55 - CQAQI]          You may need to recompile them and try again.
[2013-01-25 15:20:55 - CQAQI]          Alternatively, you may have to specify the option 
[2013-01-25 15:20:55 - CQAQI]          '-dontskipnonpubliclibraryclassmembers'.
[2013-01-25 15:20:55 - CQAQI] Error: Please correct the above warnings first.

当我导出应用程序时出现错误,即使在更新到 Proguard 4.8 之后也是如此。我能做什么?

最佳答案

试试这个:

-dontwarn android.support.v4.view.**
-keep class android.support.v4.** { *; }

关于android - Proguard 错误,无法导出应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14517282/

相关文章:

java - Parse.com 中的多个用户类

android - 如何将ProGuard添加到具有依赖项的项目中?

安卓 : shrinkResources is failing to build

java - onActivityResult 未从适配器调用

android - 是否可以在 android 中以编程方式切换 APN?

android - EditTextPreference 单行

java - Android 将闹钟设置为过去的日期

android - 为什么 minifyEnabled 在默认情况下在发布版本中为 false?

android - ProGuard 警告不允许我的应用程序编译发布

android - Proguard for Wire + 改造 NoSuchMethodException