2011-08-15 63 views
27

我在這裏的時間很短,所以我真的希望這裏有人有線索如何解決這些問題:Android的Ant構建:proguard的找不到類引用方法ViewConfigurationCompatFroyo

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

,並(在傑克遜錯誤):

-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。

編輯:遷移到答案

+10

這仍然是一個「未回答」的問題。你能回答你自己的問題,然後接受答案嗎?這會將其從「未答覆」列表中刪除。 –

+0

我已經將您的編輯遷移到您的答案,現在您只需接受它。 –

回答

1

編輯我上面的帖子顯示答案。

找到它。

這些似乎有幫助。

-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.** 
+0

我已經將編輯遷移到現在回答您只需接受它。 –

4
-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.** 
0

以下內容添加到您的ProGuard配置文件。

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

您不需要遮掩第三方庫。

相關問題