Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Android Lists and Adapters (2015) Acting on List Item Taps Wrapping Up

J A
seal-mask
.a{fill-rule:evenodd;}techdegree
J A
Full Stack JavaScript Techdegree Student 4,646 Points

Can't run Google Play Services on basic location app

So following Ben's blog post, I've gotten an API key for Google Maps and inserted into the resource file. When I fire up the app in the emulator it tells me that the application "won't run unless you update Google Play services."

In the Android Monitor, it also says: "Google Play services out of date." In the Android SDK Manger > SDK Tools I have Google Play Services and Support Repository > Google Repository selected, so I'm not sure what the issue is.

Also, the Gradle file contains:

compile 'com.google.android.gms:play-services:10.0.1'

1 Answer

Kourosh Raeen
Kourosh Raeen
23,733 Points

Probably the version of Google Play services on the emulator is older than the one in the build.gradle file. On the emulator, go to Settings, Apps and see what the version is and use that one in build.gradle.

J A
seal-mask
.a{fill-rule:evenodd;}techdegree
J A
Full Stack JavaScript Techdegree Student 4,646 Points

Hi Kourosh! Thanks for responding. According to Settings > Apps > Google Play services inside the emulator, it has version 9.8.79. I tried changing to that version in the gradle file, and rebuilding. However it says that it couldn't find that version and it wasn't available to download. Any other ideas?

Kourosh Raeen
Kourosh Raeen
23,733 Points

Version 9.8.0 should work.

this is terrible advice

You havent answered the question or explained y?