0

I am using https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals#play, to add admob ads to my android application but I am unable to do so. I followed the link on stackoverflow Google Play services out of date. Requires 4030500 but found 3266132 but it could not solve my issue.

I am getting the warning :-W/GooglePlayServicesUtil(5051): Google Play services out of date. Requires 4452000 but found 4448036

and error:-E/GooglePlayServicesUtil(8963): GooglePlayServices not available due to error 2

I have updated my Google Play Services jar also

Community
  • 1
  • 1
LearningBasics
  • 660
  • 1
  • 7
  • 24

1 Answers1

2

The error says Google Play services out of date. Requires 4452000 but found 4448036 - that means your device needs to install the newest version of Google Play Services. Per ensuring Google Play Services exists, you can use GooglePlayServicesUtil.getErrorDialog(), passing in the error code to generate the correct dialog to allow the user to correct any problems.

ianhanniballake
  • 191,609
  • 30
  • 470
  • 443
  • does that mean all those devices which do not have updated Google Play Services will not be able to see the ads if they install my application? – LearningBasics May 28 '14 at 02:24
  • Not until they are auto-updated to the latest version of Google Play Services, which happens automatically in the background. You're actually probably fairly lucky to run into this particular error on a real device :) – ianhanniballake May 28 '14 at 02:39
  • Also I should note that there is a less obtrusive way of notifying the user he should update his Google Play Services - via a Notification. `GooglePlayServicesUtil.showErrorNotification(GooglePlayServicesUtil.isGooglePlayServicesAvailable(this), this);` – Dzhuneyt Jul 09 '14 at 15:57