gpt4 book ai didi

android - ProGuard 和 AdMob 的问题

转载 作者:太空宇宙 更新时间:2023-11-03 12:07:50 25 4
gpt4 key购买 nike

我正在尝试使用 ProGuard 和新的 AdMob 库(Google Play 服务库项目)对我的应用进行签名

控制台给我这些错误:

[2014-04-26 16:41:33 - MyProject] Proguard returned with error code 1. See console
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.analytics.GoogleAnalytics$b: can't find superclass or interface android.app.Application$ActivityLifecycleCallbacks
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.common.images.ImageManager$e: can't find superclass or interface android.content.ComponentCallbacks2
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.analytics.GoogleAnalytics: can't find referenced class android.app.Application$ActivityLifecycleCallbacks
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.analytics.GoogleAnalytics: can't find referenced method 'void registerActivityLifecycleCallbacks(android.app.Application$ActivityLifecycleCallbacks)' in class android.app.Application
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.analytics.GoogleAnalytics$b: can't find referenced class android.app.Application$ActivityLifecycleCallbacks
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.common.images.ImageManager: can't find referenced method 'void registerComponentCallbacks(android.content.ComponentCallbacks)' in class android.content.Context
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.common.images.ImageManager$e: can't find referenced class android.content.ComponentCallbacks2
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.common.images.a: can't find referenced method 'android.graphics.drawable.Drawable[] getCompoundDrawablesRelative()' in class android.widget.TextView
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.common.images.a: can't find referenced method 'void setCompoundDrawablesRelativeWithIntrinsicBounds(android.graphics.drawable.Drawable,android.graphics.drawable.Drawable,android.graphics.drawable.Drawable,android.graphics.drawable.Drawable)' in class android.widget.TextView
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.internal.cx: can't find referenced method 'java.lang.String getDefaultUserAgent(android.content.Context)' in class android.webkit.WebSettings
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.internal.cx: can't find referenced method 'void setMediaPlaybackRequiresUserGesture(boolean)' in class android.webkit.WebSettings
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.internal.gd$b: can't find referenced method 'android.view.Display getDisplay()' in class android.view.View
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.internal.gd$b: can't find referenced method 'void removeOnGlobalLayoutListener(android.view.ViewTreeObserver$OnGlobalLayoutListener)' in class android.view.ViewTreeObserver
[2014-04-26 16:41:33 - MyProject] You should check if you need to specify additional program jars.
[2014-04-26 16:41:33 - MyProject] Warning: there were 5 unresolved references to classes or interfaces.
[2014-04-26 16:41:33 - MyProject] You may need to specify additional library jars (using '-libraryjars').
[2014-04-26 16:41:33 - MyProject] Warning: there were 8 unresolved references to program class members.
[2014-04-26 16:41:33 - MyProject] Your input classes appear to be inconsistent.
[2014-04-26 16:41:33 - MyProject] You may need to recompile them and try again.
[2014-04-26 16:41:33 - MyProject] Alternatively, you may have to specify the option
[2014-04-26 16:41:33 - MyProject] '-dontskipnonpubliclibraryclassmembers'.
[2014-04-26 16:41:33 - MyProject] java.io.IOException: Please correct the above warnings first.
[2014-04-26 16:41:33 - MyProject] at proguard.Initializer.execute(Initializer.java:321)
[2014-04-26 16:41:33 - MyProject] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-04-26 16:41:33 - MyProject] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-04-26 16:41:33 - MyProject] at proguard.ProGuard.main(ProGuard.java:492)

我在网上找不到解决这个问题的方法。

最佳答案

也许你应该将它添加到你的 proguard.txt 中:

-dontwarn com.google.android.gms.**

祝你好运。

关于android - ProGuard 和 AdMob 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23312421/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com