android-support-v4.jar 混淆出錯

來源:互聯網
上載者:User

將工程混淆下,但是發現有如下的錯誤:

 [java] Warning: android.support.v4.view.accessibility.AccessibilityNodeProviderCompatJellyBean$1: can't find superclass or interface android.view.accessibility.AccessibilityNodeProvider     [java] Warning: android.support.v4.app.NavUtilsJB: can't find referenced method 'android.content.Intent getParentActivityIntent()' in class android.app.Activity     [java] Warning: android.support.v4.app.NavUtilsJB: can't find referenced method 'boolean shouldUpRecreateTask(android.content.Intent)' in class android.app.Activity     [java] Warning: android.support.v4.app.NavUtilsJB: can't find referenced method 'boolean navigateUpTo(android.content.Intent)' in class android.app.Activity     [java] Warning: android.support.v4.app.NavUtilsJB: can't find referenced field 'java.lang.String parentActivityName' in class android.content.pm.ActivityInfo     [java] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification$Builder setSubText(java.lang.CharSequence)' in class android.app.Notification$Builder     [java] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification$Builder setUsesChronometer(boolean)' in class android.app.Notification$Builder     [java] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification$Builder setPriority(int)' in class android.app.Notification$Builder     [java] Warning: android.support.v4.app.NotificationCompatJellybean: can't find referenced method 'android.app.Notification$Builder addAction(int,java.lang.CharSequence,android.app.PendingIntent)' in class android.app.Notification$Builder
...
...

由於之前混淆這個 android-support-v4.jar包是沒有問題的,

可想問題出現:目前的這個android-support-v4.jar JAR包上,果然,當初建工程的時候,引導工程預設是

使用最新的API-17來建工程的,所以系統預設使用支援4.1 Jelly Bean 的android-support-v4.jar JAR包,

打包的時候 API-level調到 >= 16即可,或者將 /libs/android-support-v4.jar 替換成較老版本的。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.