Android Studio GeoDataClient cannot be resolved

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

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.

Leave a Comment