Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/186.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android ant构建:proguard可以';在类ViewConfigurationCompatFroyo中找不到引用的方法_Android_Proguard_Obfuscation - Fatal编程技术网

Android ant构建:proguard可以';在类ViewConfigurationCompatFroyo中找不到引用的方法

Android ant构建:proguard可以';在类ViewConfigurationCompatFroyo中找不到引用的方法,android,proguard,obfuscation,Android,Proguard,Obfuscation,我在这里的时间很短,所以我真的希望这里的人能知道如何解决这些问题: [proguard] Warning: android.support.v4.view.ViewConfigurationCompatFroyo: can't find referenced method 'int getScaledPagingTouchSlop()' in class android.view.ViewConfiguration [proguard] Note: org.codehaus.jackson.ma

我在这里的时间很短,所以我真的希望这里的人能知道如何解决这些问题:

[proguard] Warning: android.support.v4.view.ViewConfigurationCompatFroyo: can't find referenced method 'int getScaledPagingTouchSlop()' in class android.view.ViewConfiguration
[proguard] Note: org.codehaus.jackson.map.deser.BasicDeserializerFactory: can't find dynamically referenced class java.util.ConcurrentNavigableMap
[proguard] Note: org.codehaus.jackson.map.deser.BasicDeserializerFactory: can't find dynamically referenced class java.util.ConcurrentSkipListMap
[proguard] Note: there were 2 unresolved dynamic references to classes or interfaces.
[proguard]       You should check if you need to specify additional program jars.
[proguard] Warning: there were 1 unresolved references to program class members.
[proguard]          Your input classes appear to be inconsistent.
[proguard]          You may need to recompile them and try again.
[proguard]          Alternatively, you may have to specify the options
[proguard]          '-dontskipnonpubliclibraryclasses' and/or
[proguard]          '-dontskipnonpubliclibraryclassmembers'.
我已经尝试添加多个内容:

-dontwarn **CompatHoneycomb
-dontwarn **CompatCreatorHoneycombMR2
-keep class android.support.v4.** { *; }
还有(对于杰克逊的错误):

有人知道我在proguard.cfg中缺少了什么吗?或者关于如何更全面地调查/解决它的一些提示

我把它从472条警告降到了这些,主要是通过添加dontwarn语句: -dontwarn java.awt.,javax.security.,java.beans.,javax.xml.,java.util.,org.w3c.dom.


编辑:迁移到答案

编辑上面的我的帖子以显示答案

找到了

这些似乎有帮助

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

-dontwarn java.awt.**,javax.security.**,java.beans.**,javax.xml.**,java.util.**,org.w3c.dom.**

将以下内容添加到proguard配置文件中

-keep class org.codehaus.jackson.** { 
    *; 
}

您不需要模糊第三方库。

这仍然是一个“未回答”的问题。你能回答自己的问题,然后接受这个答案吗。这将从“未答复”列表中删除它。我已将您的编辑迁移到您的答案,现在您只需接受它。我已将编辑迁移到答案,现在您只需接受它。
-dontwarn **CompatHoneycomb
-dontwarn **CompatCreatorHoneycombMR2
-dontwarn android.support.v4.view.**
-keep class android.support.v4.** { *; }

-dontwarn java.awt.**,javax.security.**,java.beans.**,javax.xml.**,java.util.**,org.w3c.dom.**
-keep class org.codehaus.jackson.** { 
    *; 
}