Android代码混淆失败

Android代码混淆失败Readinginput… Readingprogramjar[/data/rdm/projects/7060/bin/proguard/original.jar] Readingprogramjar[/data/rdm/projects/7060/libs/android-support-v4.jar] Readinglibraryjar[/data/rdm/

大家好,又见面了,我是你们的朋友全栈君。 Reading input…

 Reading program jar [/data/rdm/projects/7060/bin/proguard/original.jar]

 Reading program jar [/data/rdm/projects/7060/libs/android-support-v4.jar]

 Reading library jar [/data/rdm/apps/sdk/platforms/android-18/android.jar]

 Initializing…

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

 Note: android.support.v4.text.ICUCompatIcs: can’t find dynamically referenced class libcore.icu.ICU

 Note: android.support.v4.text.ICUCompatIcs accesses a method ‘getScript(java.lang.String)’ dynamically

 Maybe this is program method ‘android.support.v4.text.ICUCompat { java.lang.String getScript(java.lang.String); }’

 Maybe this is program method ‘android.support.v4.text.ICUCompat$ICUCompatImpl { java.lang.String getScript(java.lang.String); }’

 Maybe this is program method ‘android.support.v4.text.ICUCompat$ICUCompatImplBase { java.lang.String getScript(java.lang.String); }’

 Maybe this is program method ‘android.support.v4.text.ICUCompat$ICUCompatImplIcs { java.lang.String getScript(java.lang.String); }’

 Maybe this is program method ‘android.support.v4.text.ICUCompatIcs { java.lang.String getScript(java.lang.String); }’

 Note: android.support.v4.text.ICUCompatIcs accesses a method ‘addLikelySubtags(java.lang.String)’ dynamically

 Maybe this is program method ‘android.support.v4.text.ICUCompat { java.lang.String addLikelySubtags(java.lang.String); }’

 Maybe this is program method ‘android.support.v4.text.ICUCompat$ICUCompatImpl { java.lang.String addLikelySubtags(java.lang.String); }’

 Maybe this is program method ‘android.support.v4.text.ICUCompat$ICUCompatImplBase { java.lang.String addLikelySubtags(java.lang.String); }’

 Maybe this is program method ‘android.support.v4.text.ICUCompat$ICUCompatImplIcs { java.lang.String addLikelySubtags(java.lang.String); }’

 Maybe this is program method ‘android.support.v4.text.ICUCompatIcs { java.lang.String addLikelySubtags(java.lang.String); }’

 Note: there were 1 unresolved dynamic references to classes or interfaces.

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

 Note: there were 2 accesses to class members by means of introspection.

 You should consider explicitly keeping the mentioned class members

 (using ‘-keep’ or ‘-keepclassmembers’).

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

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

 Warning: there were 14 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’.

做代码混淆,结果爆出如上错误,google也没有太多信息,最后找出来可能是v4版本的code被混淆了,然后没办法找到class导致异常。

修改方案是修改混淆配置文件proguard.cfg文件,将如下内容添加到文件最后即可

-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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/139384.html原文链接:https://javaforall.cn

【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛

【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...

(0)


相关推荐

发表回复

您的电子邮箱地址不会被公开。

关注全栈程序员社区公众号