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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -