我使用的是android studio 3.3版。我想把依赖项放在
'com.google.android.gms:play-services-location:16.0.2'然而,我一直收到一个错误,说无法解决。我已经搜索了google API,但是找不到,因为我一直得到
'com.google.android.gms:play-services-location:11.0.2' 版本。你能帮我找到一个解决方案吗?
发布于 2019-03-22 20:28:40
请将google的插件添加到文件底部
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion "27.0.0"
defaultConfig {
applicationId "package name"
minSdkVersion 17
targetSdkVersion 27
versionCode 1
versionName "1.0"
}
}
dependencies {
compile 'com.google.android.gms:play-services-location:16.0.2'
}
// Add to the bottom of the file
apply plugin: 'com.google.gms.google-services'https://stackoverflow.com/questions/55295410
复制相似问题