Android app supporting android-v4.jar added to bug, facing error trying to login using progaurd in IntelliJ Idea

I am trying to sign my application. Without checking progaurd, the registration process is fine. But if I use progaurd I get the following stack trace. I tried to add

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

      

for progaurd.cfg as well as updating progaurd.cfg by downloading the newer version and copying the inserted jars and also checking for any spaces in the project location. None of them seem to work.

Apps min sdk version - 9. I am looking to download the app to the galaxy tab that is running Android 3.2 (just thought this data might be needed)

**Error:Warning: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2: can't find superclass or interface android.os.Parcelable$ClassLoaderCreator

Error:Warning: android.support.v4.view.AccessibilityDelegateCompatIcs$1: can't find superclass or interface android.view.View$AccessibilityDelegate

Error:Warning: android.support.v4.view.accessibility.AccessibilityManagerCompatIcs$1: can't find superclass or interface android.view.accessibility.AccessibilityManager$AccessibilityStateChangeListener

Error:Warning: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatIcs: can't find referenced method 'boolean getCanRetrieveWindowContent()' in class android.accessibilityservice.AccessibilityServiceInfo

Error:Warning: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatIcs: can't find referenced method 'java.lang.String getDescription()' in class android.accessibilityservice.AccessibilityServiceInfo

Error:Warning: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatIcs: can't find referenced method 'java.lang.String getId()' in class android.accessibilityservice.AccessibilityServiceInfo

Error:Warning: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatIcs: can't find referenced method 'android.content.pm.ResolveInfo getResolveInfo()' in class android.accessibilityservice.AccessibilityServiceInfo

Error:Warning: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatIcs: can't find referenced method 'java.lang.String getSettingsActivityName()' in class android.accessibilityservice.AccessibilityServiceInfo

Error:Warning: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2: can't find referenced class android.os.Parcelable$ClassLoaderCreator

Error:Warning: android.support.v4.view.AccessibilityDelegateCompatIcs: can't find referenced class android.view.View$AccessibilityDelegate

Error:Warning: android.support.v4.view.AccessibilityDelegateCompatIcs: can't find referenced class android.view.accessibility.AccessibilityNodeInfo

Error:Warning: android.support.v4.view.AccessibilityDelegateCompatIcs$1: can't find referenced class android.view.View$AccessibilityDelegate

Error:Warning: android.support.v4.view.AccessibilityDelegateCompatIcs$1: can't find referenced class android.view.accessibility.AccessibilityNodeInfo

Error:Warning: android.support.v4.view.ViewCompatICS: can't find referenced method 'boolean canScrollHorizontally(int)' in class android.view.View

Error:Warning: android.support.v4.view.ViewCompatICS: can't find referenced method 'boolean canScrollVertically(int)' in class android.view.View

Error:Warning: android.support.v4.view.ViewCompatICS: can't find referenced class android.view.View$AccessibilityDelegate

Error:Warning: android.support.v4.view.ViewCompatICS: can't find referenced method 'void setAccessibilityDelegate(android.view.View$AccessibilityDelegate)' in class android.view.View

Error:Warning: android.support.v4.view.ViewCompatICS: can't find referenced method 'void onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)' in class android.view.View

Error:Warning: android.support.v4.view.ViewCompatICS: can't find referenced method 'void onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent)' in class android.view.View

Error:Warning: android.support.v4.view.ViewCompatICS: can't find referenced class android.view.accessibility.AccessibilityNodeInfo

Error:Warning: android.support.v4.view.ViewCompatICS: can't find referenced method 'void onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo)' in class android.view.View

Error:Warning: android.support.v4.view.ViewGroupCompatIcs: can't find referenced method 'boolean onRequestSendAccessibilityEvent(android.view.View,android.view.accessibility.AccessibilityEvent)' in class android.view.ViewGroup

Error:Warning: android.support.v4.view.accessibility.AccessibilityEventCompatIcs: can't find referenced method 'int getRecordCount()' in class android.view.accessibility.AccessibilityEvent

Error:Warning: android.support.v4.view.accessibility.AccessibilityEventCompatIcs: can't find referenced class android.view.accessibility.AccessibilityRecord

Error:Warning: android.support.v4.view.accessibility.AccessibilityEventCompatIcs: can't find referenced method 'void appendRecord(android.view.accessibility.AccessibilityRecord)' in class android.view.accessibility.AccessibilityEvent

Error:Warning: android.support.v4.view.accessibility.AccessibilityEventCompatIcs: can't find referenced method 'android.view.accessibility.AccessibilityRecord getRecord(int)' in class android.view.accessibility.AccessibilityEvent

Error:Warning: android.support.v4.view.accessibility.AccessibilityManagerCompatIcs: can't find referenced class android.view.accessibility.AccessibilityManager$AccessibilityStateChangeListener

Error:Warning: android.support.v4.view.accessibility.AccessibilityManagerCompatIcs: can't find referenced method 'boolean addAccessibilityStateChangeListener(android.view.accessibility.AccessibilityManager$AccessibilityStateChangeListener)' in class android.view.accessibility.AccessibilityManager
Error:Warning: android.support.v4.view.accessibility.AccessibilityManagerCompatIcs: can't find referenced method 'boolean removeAccessibilityStateChangeListener(android.view.accessibility.AccessibilityManager$AccessibilityStateChangeListener)' in class android.view.accessibility.AccessibilityManager

Error:Warning: android.support.v4.view.accessibility.AccessibilityManagerCompatIcs: can't find referenced method 'java.util.List getEnabledAccessibilityServiceList(int)' in class android.view.accessibility.AccessibilityManager

Error:Warning: android.support.v4.view.accessibility.AccessibilityManagerCompatIcs: can't find referenced method 'java.util.List getInstalledAccessibilityServiceList()' in class android.view.accessibility.AccessibilityManager

Error:Warning: android.support.v4.view.accessibility.AccessibilityManagerCompatIcs: can't find referenced method 'boolean isTouchExplorationEnabled()' in class android.view.accessibility.AccessibilityManager

Error:Warning: android.support.v4.view.accessibility.AccessibilityManagerCompatIcs$1: can't find referenced class android.view.accessibility.AccessibilityManager$AccessibilityStateChangeListener

Error:Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatIcs: can't find referenced class android.view.accessibility.AccessibilityNodeInfo

Error:Warning: android.support.v4.view.accessibility.AccessibilityRecordCompatIcs: can't find referenced class android.view.accessibility.AccessibilityRecord

Error:Warning: android.support.v4.widget.EdgeEffectCompatIcs: can't find referenced class android.widget.EdgeEffect

Error:Warning: there were 124 unresolved references to classes or interfaces.

Error:         You may need to specify additional library jars (using '-libraryjars').

Error:Warning: there were 20 unresolved references to program class members.

Error:         Your input classes appear to be inconsistent.

Error:         You may need to recompile them and try again.

Error:         Alternatively, you may have to specify the option 

Error:         '-dontskipnonpubliclibraryclassmembers'.

Error:java.io.IOException: Please correct the above warnings first.

Error:  at proguard.Initializer.execute(Initializer.java:321)

Error:  at proguard.ProGuard.initialize(ProGuard.java:211)

Error:  at proguard.ProGuard.execute(ProGuard.java:86)

Error:  at proguard.ProGuard.main(ProGuard.java:492)** 

      

+3


source to share


5 answers


I found the hacked problem, I added command to progaurd.cfg and vola, now it works fine

-dontwarn android.support.v4.**

      



I am not sure if this is correct, because as I understand it, I am just suppressing the warnings.

+5


source


add this line cfg: -dontwarn android.support. ** you can see it in yourself like: android-SDKs / tools / ProGuard / docs / index.html which says: If you are using the Android compatibility library, you must add the following line so that ProGuard knows that the library supports some classes, which are not available in all API versions:



-dontwarn android.support.**

      

+9


source


-dontwarn android.support.v4. ** Worked for me.

+2


source


As long as the minimum SDK level is 9, you can target higher SDK levels, if you haven't tried that, I would suggest targeting 14, this solves a very similar problekm for me.

+1


source


If you download the latest Android tools, you must put the support library in the / libs folder.

This may be your problem.

0


source







All Articles