Gradle Latlng usage dependency in java project

I want to use the Latlng class in my java project. https://developers.google.com/android/reference/com/google/android/gms/maps/model/LatLng

Can someone tell me gradle dependency for this.

+4
source share
2 answers

Um, well, this class will seem to be part of the Maps V2 library, given its Java package, and so the dependency is on the artifact com.google.android.gms:play-services-mapsfrom the Google repository.

V2, LatLng, -, . Maps V2, , , double, SDK Android Location.

+2
compile 'com.google.android.gms:play-services-location:8.1.0'
+1

Source: https://habr.com/ru/post/1612445/


All Articles