我正在关注一个示例,我收到错误“无法解析符号GooglePlaces”
以下是无效的导入,“se”部分的错误
import se.walkercrou.places.GooglePlaces;
import se.walkercrou.places.Place;
public class MapsActivity extends FragmentActivity implements OnMapReadyCallback {
private GoogleMap mMap; // Might be null if Google Play services APK is not available.
//Browser key
//This is where error is occuring
private final GooglePlaces client = new GooglePlaces("AIzaSyC7ai4zqvJvUIHr4fRYqZtIVNwUMtd6ZvQ");
我试图通过查看依赖关系来解决它,但它似乎是最新的
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.android.support:appcompat-v7:23.2.0'