【问题标题】:Google Admob ads not showing AndroidGoogle Admob 广告未显示 Android
【发布时间】:2014-05-28 02:00:25
【问题描述】:

我正在使用 https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals#play 将 admob 广告添加到我的 android 应用程序中,但我无法这样做。我按照stackoverflow上的链接 Google Play services out of date. Requires 4030500 but found 3266132 但它无法解决我的问题。

我收到警告:-W/GooglePlayServicesUtil(5051):Google Play 服务已过期。需要 4452000 但找到 4448036

并且错误:-E/GooglePlayServicesUtil(8963): GooglePlayServices 由于错误 2 不可用

我也更新了我的 Google Play Services jar

【问题讨论】:

    标签: android admob google-play-services


    【解决方案1】:

    错误显示Google Play services out of date. Requires 4452000 but found 4448036 - 这意味着您的设备需要安装最新版本的 Google Play 服务。根据ensuring Google Play Services exists,您可以使用GooglePlayServicesUtil.getErrorDialog(),传入错误代码以生成正确的对话框,以便用户更正任何问题。

    【讨论】:

    • 这是否意味着所有未更新 Google Play 服务的设备在安装我的应用程序后将无法看到广告?
    • 直到它们自动更新到最新版本的 Google Play 服务后,才会在后台自动更新。实际上,在真实设备上遇到这个特定错误可能是相当幸运的 :)
    • 另外我应该注意到,通知用户他应该更新他的 Google Play 服务有一种不那么突兀的方式 - 通过通知。 GooglePlayServicesUtil.showErrorNotification(GooglePlayServicesUtil.isGooglePlayServicesAvailable(this), this);
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多