[英]Using google Place picker in android project
Some depedencies r not resolved ther are, 一些依赖性没有得到解决,
import com.google.android.gms.location.places.Place;
import com.google.android.gms.location.places.ui.PlacePicker;
follow this way : 按照这种方式:
For example: 例如:
apply plugin: 'com.android.application'
...
dependencies {
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.google.android.gms:play-services:7.0.0'
}
Be sure you update this version number each time Google Play services is updated. 每次更新Google Play服务时,请务必更新此版本号。
Save the changes and click Sync Project with Gradle Files in the toolbar. 保存更改,然后单击工具栏中的“使用Gradle文件同步项目”。
Answering because I had te same problem. 回答因为我有同样的问题。
I needed to add 'com.google.android.gms:play-services-places
to my project. 我需要在项目中添加'com.google.android.gms:play-services-places
。
in the app's build.gradle
I added 在应用程序的build.gradle
我添加了
dependencies {
...
compile 'com.google.android.gms:play-services-places:10.2.6'
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.