Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android ant build: proguard can't find referenced method in class ViewConfigurationCompatFroyo

I'm very short on time here, so I truly hope someone here has a clue how to fix these:

[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'. 

I already tried adding multiple things:

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

and also (for the jackson errors):

-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 

Anyone have a clue what i'm missing in my proguard.cfg for these references? Or potentially some tips on how to investigate / resolve it more generally?

I brought it down from 472 warnings to just these, mostly by adding the dontwarn statements: -dontwarn java.awt.,javax.security.,java.beans.,javax.xml.,java.util.,org.w3c.dom.

EDIT: Migrated to Answer

like image 470
Ophidian Avatar asked Aug 15 '11 08:08

Ophidian


2 Answers

-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.** 
like image 130
Hamza Awwad Avatar answered Oct 01 '22 04:10

Hamza Awwad


Edited my post above to display the answer.

Found it.

These seemed to help.

-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.** 
like image 35
Ophidian Avatar answered Oct 01 '22 03:10

Ophidian