Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,645 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,732 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,645 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,732 Points

Version 9.8.0 should work.

this is terrible advice

You havent answered the question or explained y?