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.

J A
Full Stack JavaScript Techdegree Student 4,645 PointsCan'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
23,732 PointsProbably 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
Full Stack JavaScript Techdegree Student 4,645 PointsJ A
Full Stack JavaScript Techdegree Student 4,645 PointsHi 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
23,732 PointsKourosh Raeen
23,732 PointsVersion 9.8.0 should work.
J A
Full Stack JavaScript Techdegree Student 4,645 PointsJ A
Full Stack JavaScript Techdegree Student 4,645 PointsThanks, it worked!
Darnell Shinbine
4,223 PointsDarnell Shinbine
4,223 Pointsthis is terrible advice
Darnell Shinbine
4,223 PointsDarnell Shinbine
4,223 PointsYou havent answered the question or explained y?