gpt4 book ai didi

Android Ant 构建 : proguard can't find referenced method in class ViewConfigurationCompatFroyo

转载 作者:IT老高 更新时间:2023-10-28 22:03:40 25 4
gpt4 key购买 nike

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

[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.** { *; }

还有(对于 jackson 错误):

-libraryjars /Libraries/Joda/joda-time-1.6.2.jar
-libraryjars /Libraries/stax2-api-3.0.0.jar
-libraryjars /Libraries/jsr311-api-0.8.jar
-libraryjars /Libraries/httpmime-4.0.1.jar

任何人都知道我的 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.**

关于Android Ant 构建 : proguard can't find referenced method in class ViewConfigurationCompatFroyo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7062777/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com