Android Google Admob:未找到Google Play服务资源

Nic*_*rne 10 android admob google-play-services

我正在尝试使用Google Mobile Adds SDK.

我在此处遵循了指南:https://developers.google.com/mobile-ads-sdk/docs/#play但在运行程序时出现了一些错误.

广告似乎正在运行,但我收到以下错误(每次加载广告时似乎发生了3次):

GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
Run Code Online (Sandbox Code Playgroud)

我导入了google_play_services-lib并且无法解决此问题.

如果我在不使用测试设备的情况下运行广告,我也会多次出现警告:

PicturePileLayerContent: Warning: painting PicturePile without content!
Run Code Online (Sandbox Code Playgroud)

小智 0

您必须将 google-play-services-lib 添加为库项目。他们更新了sdk。周围有几个教程。对于 Eclipse 来说很简单:

右键单击项目 -> 属性 -> Android

添加库项目 google play 服务库。

如需更详细的演练

导入库项目

如何让 GoogleMaps 在模拟器上运行