问题描述
我想升级我实施的AdMob。使用GoogleAdMobSDK,我想成为谷歌的播放-服务-lib目录下。
I tried to upgrade my implementation of AdMob. Using the GoogleAdMobSDK, I would like to turn into the google-play-services-lib.
显示广告。如此看来不错,但我还是在方法调用loadAd得到这个错误()在日志
The ad appears. So it seems ok, but i still got this error at the method call loadAd() in log
Requesting resource 0x7f0c000d failed because it is complex
GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
下面是我的清单:
- 我导入库项目在我的工作区,复制源。
- 我引用该库到我的项目
-
我在清单中添加元数据。
- I import the library project in my workspace, copying the source.
- I reference the library into my project
I add the meta-data in the Manifest
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
我的code
My code
this.request = new AdRequest.Builder().addTestDevice(id).build();
this.adView = new AdView(context);
this.adView.setAdUnitId(MY_AD_UNIT_ID);
this.adView.setAdSize(AdSize.SMART_BANNER);
...
this.adView.loadAd(request);
目标版本我的应用程序中的9(2.3)。我测试在Nexus 5与奇巧的版本。
The target version for my app in 9 (2.3). I test on Nexus 5 with KitKat version.
我也试图把谷歌播放-服务-lib中的jar的属性,但没有结果。
I also tried to put the google-play-services-lib jar in the properties, but no result.
我想,以确保该错误可能是处理之前提交我的应用程序。
I want to be sure that this error could be handle before submit my app.
在此先感谢
推荐答案
这是与谷歌播放服务当前版本的良性错误。不用担心这个。提交你的应用程序。睡个安稳觉。
This is a benign error with the current version of Google Play Services.Don't worry about it. Submit your app. Get some sleep.
这篇关于Android的Admob的implentation:出现错误:&QUOT;谷歌播放服务,未发现&QUOT资源;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!