gpt4 book ai didi

java - 错误 : Failed to resolve: com. google.android.gms :play-services-location:16. 1.0

转载 作者:行者123 更新时间:2023-12-02 09:03:54 26 4
gpt4 key购买 nike

尝试将位置客户端集成到我的应用程序中,搜索了这个问题发现Failed to resolve: om.google.android.gms:play-services-location:15.0.1

下面是我的 gradle 构建文件

apply plugin: 'com.android.application'

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.android.findme"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

buildscript {
repositories {
google()
jcenter()
maven {
url "https://maven.google.com"
}

}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'

}
}

allprojects {
repositories {
google()
jcenter()

}

最佳答案

com.google.android.gms:play-services-location 的版本 16.1.0 不存在,如您在 release notes page 上看到的那样

您可以使用com.google.android.gms:play-services-location:16.0.0com.google.android.gms:play-services-location:17.0。 0

关于java - 错误 : Failed to resolve: com. google.android.gms :play-services-location:16. 1.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59968550/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com