How do I import com.google.maps.android.SphericalUtil in Android Studio?
In Android Studio - You have to add following dependency to your Gradle build file:
dependencies {
compile 'com.google.maps.android:android-maps-utils:0.6.2'
}
Reference - Google Maps Android API utility library
- SphericalUtil class is available under android-maps-utils
See link here
com.google.maps.android.SphericalUtil
is included in the Google Maps Android API Utility Library, so you need to setup this library in order to import SphericalUtil
in your project.
Here is the Google Maps Android API Utility Setup guide