Cannot import com.google.android.gms.maps.model.LatLng in Android Studio

android, google-maps

Solution

Add this to your gradle file

compile "com.google.android.gms:play-services-maps:10.0.1"

Problem

I am trying to create a new class in an Android project but keep getting the following error: error: package com.google.android.gms.maps.model does not exist I have installed `Google Play Services` in the SDK manager. Any idea how to fix this? Android dev noob here

Original source

Related problems