我刚刚在未更改的 Android 项目上触发了新的 Bitrise 构建,发现现在正在发生此错误:
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':app:[REDACTED]CompileClasspath'.
> Could not find play-services-identity.aar (com.google.android.gms:play-services-identity:11.8.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-identity/11.8.0/play-services-identity-11.8.0.aar
> Could not find firebase-iid.aar (com.google.firebase:firebase-iid:11.8.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/firebase/firebase-iid/11.8.0/firebase-iid-11.8.0.aar
> Could not find firebase-common.aar (com.google.firebase:firebase-common:11.8.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/firebase/firebase-common/11.8.0/firebase-common-11.8.0.aar
> Could not find play-services-tasks-license.aar (com.google.android.gms:play-services-tasks-license:11.8.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-tasks-license/11.8.0/play-services-tasks-license-11.8.0.aar
我正在使用 React Native 以及类似的库等tipsi-stripe
。我不知道这个错误来自哪里,因为它与我的任何新功能/代码无关。我该如何解决?
我确实有这行build.gradle
:
implementation "com.google.android.gms:play-services-base:11.6.0"
我也有这个:
allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
url 'https://maven.google.com'
}
maven {
url "https://jitpack.io"
}
}
}