I am trying to build an android app using android studio that uses the userlocation. I am trying to import the google play services LocationServices api, but it says it can't resolve symbol 'LocationServices'. I tried searching for an answer but I can't figure out what the problem is.
here is a picture of my error and code:
Thanks in advance
Looking at this 7 months after it was posted and got me out of a jam.
At the moment of writing, you have to update the build.gradle(Module: app) to
compile 'com.google.android.gms:play-services-location:11.4.2'
https://developers.google.com/android/guides/setupYour post helped me a lot and I hope this addition also helps others looking at this post in the future.
You need to import:
And in
build.gradle
:you class must implement:
You need to OverWrite this methods:
Here is a detail Implementation