Android Admob implementation: Get the error : “Google Play Services resources were not found”

馋奶兔 提交于 2019-12-24 08:37:20

问题


I tried to upgrade my implementation of AdMob. Using the GoogleAdMobSDK, I would like to turn into the google-play-services-lib.

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.

Here's my checklist:

  • 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" />
    
  • 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);
    

The target version for my app in 9 (2.3). I test on Nexus 5 with KitKat version.

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.


回答1:


This is a benign error with the current version of Google Play Services. Don't worry about it. Submit your app. Get some sleep.



来源:https://stackoverflow.com/questions/22152834/android-admob-implementation-get-the-error-google-play-services-resources-we

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!