【问题标题】:Google Admob for Android Issue: Google Play Services were not found适用于 Android 的 Google Admob 问题:未找到 Google Play 服务
【发布时间】:2014-04-14 00:10:09
【问题描述】:

此线程可能看起来重复(解决方案是导入 Google Play 库)。但是,我可以确保我已正确导入,因为我的 Google Map API 正在正常工作,并添加了必要的清单项。使用来自 https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals 的代码示例,我得到了标题所示的错误并看到了黑色布局。

有什么想法吗?

下面的 LogCat 是使用 Google 提供的工作代码生成的,然后使用我的 G.Play 库导入...

 01-31 13:30:45.869: I/Ads(11130): Starting ad request.
01-31 13:30:45.877: I/dalvikvm(11130): Could not find method android.webkit.WebSettings.setMediaPlaybackRequiresUserGesture, referenced from method abz.<init>
01-31 13:30:45.881: W/dalvikvm(11130): VFY: unable to resolve virtual method 3345: Landroid/webkit/WebSettings;.setMediaPlaybackRequiresUserGesture (Z)V
01-31 13:30:45.881: D/dalvikvm(11130): VFY: replacing opcode 0x6e at 0x003d
01-31 13:30:46.001: E/GooglePlayServicesUtil(11130): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
01-31 13:30:46.049: D/libEGL(11130): loaded /system/lib/egl/libEGL_emulation.so
01-31 13:30:46.061: D/(11130): HostConnection::get() New Host Connection established 0xb932cbb8, tid 11130
01-31 13:30:46.077: D/libEGL(11130): loaded /system/lib/egl/libGLESv1_CM_emulation.so
01-31 13:30:46.077: D/libEGL(11130): loaded /system/lib/egl/libGLESv2_emulation.so
01-31 13:30:46.193: W/EGL_emulation(11130): eglSurfaceAttrib not implemented
01-31 13:30:46.217: D/OpenGLRenderer(11130): Enabling debug mode 0
01-31 13:30:46.285: D/OpenGLRenderer(11130): TextureCache::get: create texture(0xb92860f0): name, size, mSize = 1, 1048576, 1048576
01-31 13:30:46.301: E/GooglePlayServicesUtil(11130): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
01-31 13:30:46.305: E/GooglePlayServicesUtil(11130): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
01-31 13:30:46.437: D/OpenGLRenderer(11130): TextureCache::get: create texture(0xb92a4580): name, size, mSize = 2, 9216, 1057792
01-31 13:30:46.545: D/OpenGLRenderer(11130): TextureCache::get: create texture(0xb926c1f0): name, size, mSize = 4, 36864, 1094656
01-31 13:30:47.525: I/Ads(11130): Ad finished loading.

【问题讨论】:

  • 你能发布一个谷歌地图类的包名吗?比如com.google.android.*.*.*
  • 导入 com.google.android.gms.maps.GoogleMap;
  • p/s:Google 提供的示例项目也有同样的问题...
  • 错误出现在哪里?如果它在 logcat 中,您可以在此处复制/粘贴相关部分吗?
  • 这很奇怪。 finally 加载并出现在现在;但是找不到库的错误仍然存​​在

标签: android admob


【解决方案1】:

显然这是 Google Play 服务 SDK 中的错误。查看this bug report。它应该可以正常工作,但日志中会出现不正确的错误。

【讨论】:

    猜你喜欢
    • 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
    相关资源
    最近更新 更多