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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![J A](https://secure.gravatar.com/avatar/97a5052e2c492d3d1e2de07e7d68351f?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
J A
Full Stack JavaScript Techdegree Student 4,646 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](https://uploads.teamtreehouse.com/production/profile-photos/3971082/micro_TreehouseProfilePic.jpg)
Kourosh Raeen
23,733 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,646 PointsJ A
Full Stack JavaScript Techdegree Student 4,646 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,733 PointsKourosh Raeen
23,733 PointsVersion 9.8.0 should work.
J A
Full Stack JavaScript Techdegree Student 4,646 PointsJ A
Full Stack JavaScript Techdegree Student 4,646 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?