android - 谷歌播放服务 API
问题描述
我正在使用 android studio 3.3 版。我想将依赖项放在
'com.google.android.gms:play-services-location:16.0.2'
但是,我不断收到一个错误,提示无法解决。我已经搜索了谷歌 API,但因为我不断得到它而未能得到它
'com.google.android.gms:play-services-location:11.0.2'
版本。你能帮我找到解决办法吗
解决方案
请将谷歌插件添加到文件底部
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'
推荐阅读
- spring - Spring Cloud kafka 组合功能
- java - 注释处理器中的 Java 源代码修改
- android - CameraX 的自定义生命周期
- java - 升级应用程序获取错误膨胀类 com.google.android.material.navigation.NavigationView
- python-3.x - 为什么同时执行任务失败并导致 Ignite 冻结?
- python - Python Keras LSTM 功能顺序相关性
- c# - Blazor 不刷新用户界面
- python - 无法使用 ffmpeg 从 mp4 文件创建音频文件
- google-places-api - Google Places API 开放时间上次更新时间为
- orocrm - 帐户数据网格重复行