更新到cordova-android 11.0.0之后,Android构建将失败,错误如下:
我试过所有可能的,但我不知所措.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.google.android.gms:play-services-auth:20.3.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-auth/20.3.0/play-services-auth-20.3.0.pom
- https://repo.maven.apache.org/maven2/com/google/android/gms/play-services-auth/20.3.0/play-services-auth-20.3.0.pom
Required by:
project :app
> Could not find com.google.android.gms:play-services-identity:20.3.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-identity/20.3.0/play-services-identity-20.3.0.pom
- https://repo.maven.apache.org/maven2/com/google/android/gms/play-services-identity/20.3.0/play-services-identity-20.3.0.pom
Required by:
project :appbuild.gradle:
buildscript {
apply from: 'CordovaLib/cordova.gradle'
apply from: 'repositories.gradle'
repositories repos
dependencies {
classpath "com.android.tools.build:gradle:${cordovaConfig.AGP_VERSION}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${cordovaConfig.KOTLIN_VERSION}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
cdvHelpers.verifyCordovaConfigForBuild()
}repositories.gradle:
ext.repos = {
google()
mavenCentral()
}cordova.gradle:
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'io.github.g00fy2:versioncompare:1.4.1@jar'
}
}有谁有主意吗?
发布于 2022-07-27 06:10:34
造成这些错误的是一个旧插件。
https://stackoverflow.com/questions/73130111
复制相似问题