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 trialJ 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
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?