google play services not available due to error 2

3,281 views
Skip to first unread message

alfred masc

unread,
Feb 15, 2015, 9:21:28 PM2/15/15
to google-adm...@googlegroups.com
Hi have a problem!! when I try to add the xml file banner asking me according to the following page: Clic
but the problem happens when put code java:

 AdView adView = (AdView)this.findViewById(R.id.adView);
        AdRequest adRequest = new AdRequest.Builder().build();
        adView.loadAd(adRequest);

trowns the next error in logcat

E/GooglePlayServicesUtil(28668): GooglePlayServices not available due to error 2

help me pleasee!! ;( and ty

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Feb 17, 2015, 5:06:27 PM2/17/15
to google-adm...@googlegroups.com
This normally means that the version of Google Play services installed on the device or emulator is too far out of date to be used.  Try updating Google Play services on the device you're using, or getting a more recent emulator image if you're using an emulator.

-Andrew

Gavriel Fleischer

unread,
Aug 4, 2015, 10:16:11 AM8/4/15
to Google Mobile Ads SDK Developers
And how do you update the Google Play Services on an emulator? I have a "stock" emulator installed from Android Studio / SDK Manager. When I compile my app with play-services-location:6.5.87 it works, but when I compile it with higher (7.5.0, as suggested on this page: https://developers.google.com/android/guides/setup) then I get this error: E/GooglePlayServicesUtil﹕ GooglePlayServices not available due to error 2

Note: I would like to find a free solution, not installing GenyMotion for 300EUR/year...

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Aug 11, 2015, 5:45:39 PM8/11/15
to Google Mobile Ads SDK Developers
Usually it's not necessary to update Play services on the emulator because you can just choose a more recent device image. If you haven't already, check the SDK Manager to make sure you've got the latest ones, and check the Android Virtual Device Manager to make sure you're running them.

You can also verify the version of Play services on installed on your emulator by going into the Apps section of the device settings and looking for Google Play services.

-Andrew

Gavriel Fleischer

unread,
Aug 20, 2015, 2:41:01 AM8/20/15
to Google Mobile Ads SDK Developers

I don't know what am I doing wrong, but I don't see how this would work. I have the latest stable (22, not M) version of SDK and images and everything is the latest. The Google Play Services in my Nexus 5, Moto G, but even in the HTC Desire that has a custom Android 2.3 ROM got numerous Google Play Services updates in the past 6 month, but my emulator image still has only the version it had when I created it last year. I do regularly update SDK, tools, but it doesn't seem to change anything. I even tried to create a new AVD image, but it had the same Google Play Services. I don't know what am I missing....


--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/A_NpbD6leg0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages