android–ProGuard在将Google Play服务更新到5.0版(修订版18)后失败

android–ProGuard在将Google Play服务更新到5.0版(修订版18)后失败,第1张

概述用于编译我的Android应用程序的我的Ant脚本工作正常,但在将GooglePlay服务库更新到5.0版(修订版18)后,ProGuard失败并显示以下输出:-obfuscate:[mkdir]Createddir:/srv2/jenkins/jobs/CCNFGoogleonly/workspacerunk/org.digitalcure.ccnf.app/bin/proguard[ja

用于编译我的Android应用程序的我的Ant脚本工作正常,但在将Google Play服务库更新到5.0版(修订版18)后,ProGuard失败并显示以下输出:

-obfuscate:    [mkdir] Created dir: /srv2/jenkins/jobs/CCNF Google only/workspace/trunk/org.digitalcure.ccnf.app/bin/proguard      [jar] Building jar: /srv2/jenkins/jobs/CCNF Google only/workspace/trunk/org.digitalcure.ccnf.app/bin/proguard/original.jar [proguard] ProGuard, version 4.7 [proguard] Reading input... [proguard] Reading program jar [/srv2/jenkins/jobs/CCNF Google only/workspace/trunk/org.digitalcure.ccnf.app/bin/proguard/original.jar] [proguard] Reading program jar [/srv2/jenkins/jobs/CCNF Google only/workspace/trunk/org.digitalcure.androID.common/bin/classes.jar] [proguard] Reading program jar [/srv2/jenkins/jobs/CCNF Google only/workspace/trunk/Google-play-services_lib/bin/classes.jar] [proguard] Reading program jar [/srv2/jenkins/jobs/CCNF Google only/workspace/trunk/androID-support-v7-appcompat/bin/classes.jar] [proguard] Reading program jar [/srv2/jenkins/jobs/CCNF Google only/workspace/trunk/androID-support-v7-appcompat/libs/androID-support-v7-appcompat.jar] [proguard] Reading program jar [/srv2/jenkins/jobs/CCNF Google only/workspace/trunk/androID-support-v7-appcompat/libs/androID-support-v4.jar] [proguard] Reading program jar [/srv2/jenkins/jobs/CCNF Google only/workspace/trunk/Google-play-services_lib/libs/Google-play-services.jar] [proguard] Reading library jar [/srv/jenkins/tools/androID-sdk-linux/platforms/androID-17/androID.jar] [proguard] Initializing... [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager$CaptionStyle [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager$CaptionStyle [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager$CaptionStyle [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager$CaptionStyle [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager$CaptionStyle [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager$CaptionStyle [proguard] Note: androID.support.v4.app.NotificationCompatJellybean: can't find dynamically referenced class androID.app.Notification$Action [proguard] Note: androID.support.v4.text.ICUCompatIcs: can't find dynamically referenced class libcore.icu.ICU [proguard] Note: com.Google.androID.gms.maps.internal.u: can't find dynamically referenced class com.Google.androID.gms.maps.internal.CreatorImplGmm6 [proguard] Note: com.Google.androID.gms.maps.internal.u: can't find dynamically referenced class com.Google.androID.gms.maps.internal.CreatorImpl [proguard] Note: the configuration refers to the unkNown class 'com.Google.vending.licensing.IlicensingService' [proguard] Note: the configuration refers to the unkNown class 'com.androID.vending.licensing.IlicensingService' [proguard] Note: the configuration refers to the unkNown class 'Object' [proguard]       Maybe you meant the fully qualifIEd name 'java.lang.Object'? [proguard] Note: the configuration refers to the unkNown class 'fqcn.of.JavaScript.interface.for.webvIEw' [proguard] Note: the configuration keeps the entry point 'com.Google.ads.AdSize { AdSize(com.Google.androID.gms.ads.AdSize); }', but not the descriptor class 'com.Google.androID.gms.ads.AdSize' [proguard] Note: the configuration keeps the entry point 'com.Google.ads.mediation.admob.AdMobAdapter { com.Google.androID.gms.ads.AdRequest a(androID.content.Context,com.Google.androID.gms.ads.mediation.MediationAdRequest,androID.os.Bundle,androID.os.Bundle); }', but not the descriptor class 'com.Google.androID.gms.ads.mediation.MediationAdRequest' [proguard] Note: the configuration keeps the entry point 'com.Google.ads.mediation.admob.AdMobAdapter { voID requestBannerAd(androID.content.Context,com.Google.androID.gms.ads.mediation.MediationBannerListener,androID.os.Bundle,com.Google.androID.gms.ads.AdSize,com.Google.androID.gms.ads.mediation.MediationAdRequest,androID.os.Bundle); }', but not the descriptor class 'com.Google.androID.gms.ads.mediation.MediationBannerListener' [proguard] Note: the configuration keeps the entry point 'com.Google.ads.mediation.admob.AdMobAdapter { voID requestBannerAd(androID.content.Context,com.Google.androID.gms.ads.mediation.MediationBannerListener,androID.os.Bundle,com.Google.androID.gms.ads.AdSize,com.Google.androID.gms.ads.mediation.MediationAdRequest,androID.os.Bundle); }', but not the descriptor class 'com.Google.androID.gms.ads.AdSize' [proguard] Note: the configuration keeps the entry point 'com.Google.ads.mediation.admob.AdMobAdapter { voID requestBannerAd(androID.content.Context,com.Google.androID.gms.ads.mediation.MediationBannerListener,androID.os.Bundle,com.Google.androID.gms.ads.AdSize,com.Google.androID.gms.ads.mediation.MediationAdRequest,androID.os.Bundle); }', but not the descriptor class 'com.Google.androID.gms.ads.mediation.MediationAdRequest' [proguard] Note: the configuration keeps the entry point 'com.Google.ads.mediation.admob.AdMobAdapter { voID requestInterstitialAd(androID.content.Context,com.Google.androID.gms.ads.mediation.MediationInterstitialListener,androID.os.Bundle,com.Google.androID.gms.ads.mediation.MediationAdRequest,androID.os.Bundle); }', but not the descriptor class 'com.Google.androID.gms.ads.mediation.MediationInterstitialListener' [proguard] Note: the configuration keeps the entry point 'com.Google.ads.mediation.admob.AdMobAdapter { voID requestInterstitialAd(androID.content.Context,com.Google.androID.gms.ads.mediation.MediationInterstitialListener,androID.os.Bundle,com.Google.androID.gms.ads.mediation.MediationAdRequest,androID.os.Bundle); }', but not the descriptor class 'com.Google.androID.gms.ads.mediation.MediationAdRequest' [proguard] Note: the configuration keeps the entry point 'com.Google.ads.mediation.admob.AdMobAdapter$a { AdMobAdapter$a(com.Google.ads.mediation.admob.AdMobAdapter,com.Google.androID.gms.ads.mediation.MediationBannerListener); }', but not the descriptor class 'com.Google.androID.gms.ads.mediation.MediationBannerListener' [proguard] Note: the configuration keeps the entry point 'com.Google.ads.mediation.admob.AdMobAdapter$b { AdMobAdapter$b(com.Google.ads.mediation.admob.AdMobAdapter,com.Google.androID.gms.ads.mediation.MediationInterstitialListener); }', but not the descriptor class 'com.Google.androID.gms.ads.mediation.MediationInterstitialListener' [proguard] Note: the configuration keeps the entry point 'com.Google.ads.mediation.customevent.CustomEventAdapter { voID requestBannerAd(com.Google.ads.mediation.MediationBannerListener,androID.app.Activity,com.Google.ads.mediation.customevent.CustomEventServerParameters,com.Google.ads.AdSize,com.Google.ads.mediation.MediationAdRequest,com.Google.androID.gms.ads.mediation.customevent.CustomEventExtras); }', but not the descriptor class 'com.Google.androID.gms.ads.mediation.customevent.CustomEventExtras' [proguard] Note: the configuration keeps the entry point 'com.Google.ads.mediation.customevent.CustomEventAdapter { voID requestInterstitialAd(com.Google.ads.mediation.MediationInterstitialListener,androID.app.Activity,com.Google.ads.mediation.customevent.CustomEventServerParameters,com.Google.ads.mediation.MediationAdRequest,com.Google.androID.gms.ads.mediation.customevent.CustomEventExtras); }', but not the descriptor class 'com.Google.androID.gms.ads.mediation.customevent.CustomEventExtras' [proguard] Note: there were 4 references to unkNown classes. [proguard]       You should check your configuration for typos. [proguard] Note: there were 11 unkept descriptor classes in kept class members. [proguard]       You should consIDer explicitly keePing the mentioned classes [proguard]       (using '-keep'). [proguard] Note: there were 5 unresolved dynamic references to classes or interfaces. [proguard]       You should check if you need to specify additional program jars. [proguard] Warning: there were 9 unresolved references to classes or interfaces. [proguard]          You may need to specify additional library jars (using '-libraryjars').

将它与前一个(工作)输出进行比较,以下几行是新的:

 [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager$CaptionStyle [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager$CaptionStyle [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager$CaptionStyle [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager$CaptionStyle [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager$CaptionStyle [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager [proguard] Warning: com.Google.androID.gms.cast.TextTrackStyle: can't find referenced class androID.vIEw.accessibility.CaptioningManager$CaptionStyle [proguard] Note: androID.support.v4.app.NotificationCompatJellybean: can't find dynamically referenced class androID.app.Notification$Action

加上输出结尾的错误消息.

发生了什么?它接触androID.vIEw.accessibility.CaptioningManager是在API级别19引入的.

解决方法:

我注意到AndroID支持库的目标版本从16更改为19(同时将其更新为修订版20).我的应用程序是针对目标版本17构建的.所以我将主应用程序项目的目标版本从17更改为19,现在一切都很好.而已!

总结

以上是内存溢出为你收集整理的android – ProGuard在将Google Play服务更新到5.0版(修订版18)后失败全部内容,希望文章能够帮你解决android – ProGuard在将Google Play服务更新到5.0版(修订版18)后失败所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1119975.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存