Android 代码混淆exception解决办法

错误代码:

 Proguard returned with error code 1. See console

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find superclass or interface android.media.RemoteControlClient$OnGetPlaybackPositionListener

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find superclass or interface android.media.RemoteControlClient$OnPlaybackPositionUpdateListener

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2$1: can't find superclass or interface android.view.ViewTreeObserver$OnWindowAttachListener

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2$2: can't find superclass or interface android.view.ViewTreeObserver$OnWindowFocusChangeListener

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find superclass or interface android.print.PrintDocumentAdapter

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find superclass or interface android.print.PrintDocumentAdapter

 Warning: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatJellyBeanMr2: can't find referenced method 'int getCapabilities()' in class android.accessibilityservice.AccessibilityServiceInfo

 Warning: android.support.v4.content.ContextCompatKitKat: can't find referenced method 'java.io.File[] getExternalCacheDirs()' in class android.content.Context

 Warning: android.support.v4.content.ContextCompatKitKat: can't find referenced method 'java.io.File[] getExternalFilesDirs(java.lang.String)' in class android.content.Context

 Warning: android.support.v4.content.ContextCompatKitKat: can't find referenced method 'java.io.File[] getObbDirs()' in class android.content.Context

 Warning: android.support.v4.graphics.drawable.DrawableCompatKitKat: can't find referenced method 'void setAutoMirrored(boolean)' in class android.graphics.drawable.Drawable

 Warning: android.support.v4.graphics.drawable.DrawableCompatKitKat: can't find referenced method 'boolean isAutoMirrored()' in class android.graphics.drawable.Drawable

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void addOnWindowAttachListener(android.view.ViewTreeObserver$OnWindowAttachListener)' in class android.view.ViewTreeObserver

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void addOnWindowFocusChangeListener(android.view.ViewTreeObserver$OnWindowFocusChangeListener)' in class android.view.ViewTreeObserver

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void removeOnWindowAttachListener(android.view.ViewTreeObserver$OnWindowAttachListener)' in class android.view.ViewTreeObserver

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void removeOnWindowFocusChangeListener(android.view.ViewTreeObserver$OnWindowFocusChangeListener)' in class android.view.ViewTreeObserver

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void setOnGetPlaybackPositionListener(android.media.RemoteControlClient$OnGetPlaybackPositionListener)' in class android.media.RemoteControlClient

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void setPlaybackPositionUpdateListener(android.media.RemoteControlClient$OnPlaybackPositionUpdateListener)' in class android.media.RemoteControlClient

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void registerMediaButtonEventReceiver(android.app.PendingIntent)' in class android.media.AudioManager

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void setPlaybackState(int,long,float)' in class android.media.RemoteControlClient

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced method 'void unregisterMediaButtonEventReceiver(android.app.PendingIntent)' in class android.media.AudioManager

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced class android.media.RemoteControlClient$OnGetPlaybackPositionListener

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced class android.media.RemoteControlClient$OnPlaybackPositionUpdateListener

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced class android.view.ViewTreeObserver$OnWindowAttachListener

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced class android.view.ViewTreeObserver$OnWindowFocusChangeListener

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced class android.view.ViewTreeObserver$OnWindowAttachListener

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2: can't find referenced class android.view.ViewTreeObserver$OnWindowFocusChangeListener

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2$1: can't find referenced class android.view.ViewTreeObserver$OnWindowAttachListener

 Warning: android.support.v4.media.TransportMediatorJellybeanMR2$2: can't find referenced class android.view.ViewTreeObserver$OnWindowFocusChangeListener

 Warning: android.support.v4.os.EnvironmentCompatKitKat: can't find referenced method 'java.lang.String getStorageState(java.io.File)' in class android.os.Environment

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintManager

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintAttributes$MediaSize

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintAttributes$MediaSize

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintAttributes$Builder

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintAttributes$Builder

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintAttributes$Builder

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintAttributes$Builder

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintAttributes$Builder

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintManager

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintAttributes$MediaSize

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintManager

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintAttributes$MediaSize

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintDocumentAdapter

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintManager

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintAttributes$Builder

 Warning: android.support.v4.print.PrintHelperKitkat: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentAdapter

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.graphics.pdf.PdfDocument$Page

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.graphics.pdf.PdfDocument$PageInfo

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.graphics.pdf.PdfDocument$Page

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PageRange

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PageRange

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentAdapter$WriteResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentAdapter$WriteResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentAdapter

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentAdapter$WriteResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.graphics.pdf.PdfDocument$Page

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentInfo

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.graphics.pdf.PdfDocument$PageInfo

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.graphics.pdf.PdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentInfo

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PageRange

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentAdapter$WriteResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.graphics.pdf.PdfDocument$Page

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PageRange

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.PrintDocumentAdapter$WriteResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$1: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentAdapter

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentAdapter

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.graphics.pdf.PdfDocument$Page

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.graphics.pdf.PdfDocument$PageInfo

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.graphics.pdf.PdfDocument$Page

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PageRange

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PageRange

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentAdapter$WriteResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentAdapter$WriteResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentAdapter

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentAdapter$WriteResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.graphics.pdf.PdfDocument$Page

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentInfo

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.graphics.pdf.PdfDocument$PageInfo

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.graphics.pdf.PdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentInfo

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PageRange

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentAdapter$WriteResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.graphics.pdf.PdfDocument$Page

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PageRange

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.PrintDocumentAdapter$WriteResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2: can't find referenced class android.print.pdf.PrintedPdfDocument

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentInfo$Builder

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentInfo

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentAdapter

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintAttributes

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentAdapter$LayoutResultCallback

 Warning: android.support.v4.print.PrintHelperKitkat$2$1: can't find referenced class android.print.PrintDocumentInfo

 Warning: android.support.v4.view.ScaleGestureDetectorCompatKitKat: can't find referenced method 'void setQuickScaleEnabled(boolean)' in class android.view.ScaleGestureDetector

 Warning: android.support.v4.view.ScaleGestureDetectorCompatKitKat: can't find referenced method 'boolean isQuickScaleEnabled()' in class android.view.ScaleGestureDetector

 Warning: android.support.v4.view.ViewCompatKitKat: can't find referenced method 'int getAccessibilityLiveRegion()' in class android.view.View

 Warning: android.support.v4.view.ViewCompatKitKat: can't find referenced method 'void setAccessibilityLiveRegion(int)' in class android.view.View

 Warning: android.support.v4.view.ViewGroupCompatJellybeanMR2: can't find referenced method 'int getLayoutMode()' in class android.view.ViewGroup

 Warning: android.support.v4.view.ViewGroupCompatJellybeanMR2: can't find referenced method 'void setLayoutMode(int)' in class android.view.ViewGroup

 Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellybeanMr2: can't find referenced method 'void setViewIdResourceName(java.lang.String)' in class android.view.accessibility.AccessibilityNodeInfo

 Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatJellybeanMr2: can't find referenced method 'java.lang.String getViewIdResourceName()' in class android.view.accessibility.AccessibilityNodeInfo

 Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatKitKat: can't find referenced method 'int getLiveRegion()' in class android.view.accessibility.AccessibilityNodeInfo

 Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatKitKat: can't find referenced method 'void setLiveRegion(int)' in class android.view.accessibility.AccessibilityNodeInfo

 Warning: android.support.v4.widget.ListPopupWindowCompatKitKat: can't find referenced method 'android.view.View$OnTouchListener createDragToOpenListener(android.view.View)' in class android.widget.ListPopupWindow

 Warning: android.support.v4.widget.PopupMenuCompatKitKat: can't find referenced method 'android.view.View$OnTouchListener getDragToOpenListener()' in class android.widget.PopupMenu

       You should check if you need to specify additional program jars.

 Warning: there were 140 unresolved references to classes or interfaces.

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

 Warning: there were 28 unresolved references to program class members.

          Your input classes appear to be inconsistent.

          You may need to recompile them and try again.

          Alternatively, you may have to specify the option 

          '-dontskipnonpubliclibraryclassmembers'.

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

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

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

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

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

==========================

解决办法:

-libraryjars   libs/android-support-v4.jar 


-dontwarn android.support.v4.** 


-keep class android.support.v4.** { *; }


-keep interface android.support.v4.app.** { *; }


-keep public class * extends android.support.v4.**


-keep public class * extends android.app.Fragment


你可能感兴趣的:(Android 代码混淆exception解决办法)