api - Android Studio GeoDataClient cannot be resolved -


i haven't seen problem anywhere on internet, doesn't seem library deprecated, can't add import:

import com.google.android.gms.location.places.geodataclient; 

my android sdk date.

does know how use it? or rather, way current location on gps?

thanks lot.

try 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, may need add

```gradle

allprojects { repositories {     jcenter()     maven {         url "https://maven.google.com"     } } 

}

```

finally, build -> rebuild project, there simple demo using google map api&google direction api, , on, in my github. hope you.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -