Android Studio GeoDataClient cannot be resolved
Try to add
```gradle
compile 'com.google.android.gms:play-services-maps:11.2.0'
compile 'com.google.android.gms:play-services-places:11.2.0'
compile 'com.google.android.gms:play-services:11.2.0'
compile 'com.google.android.gms:play-services-location:11.2.0'
```
in build.gradle
, then you may need add
```gradle
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
```
finally, Build -> rebuild project.
just add:
compile 'com.google.android.gms:play-services-places:11.2.0'
and
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
because GeoDataClient was added in 11.2.0 you can check this official document
Adding just this one dependency to apps
build.gradle
compile 'com.google.android.gms:play-services:11.8.0'
and below code to project's
build.gradle should work.
allprojects {
repositories {
google()
jcenter()
maven {
url "https://maven.google.com"
}
}
}