刚刚在我的颤振项目中添加了一个新的依赖项screen_protector: 1.1.1,它只在android上失败,其中包含以下消息:
Execution failed for task ':app:checkRefzDebugAarMetadata'.
> Could not resolve all files for configuration ':app:refzDebugRuntimeClasspath'.
> Could not find com.github.prongbang:screen-protector:1.0.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/prongbang/screen-protector/1.0.0/screen-protector-1.0.0.pom
- https://repo.maven.apache.org/maven2/com/github/prongbang/screen-protector/1.0.0/screen-protector-1.0.0.pom
- https://storage.googleapis.com/download.flutter.io/com/github/prongbang/screen-protector/1.0.0/screen-protector-1.0.0.pom
- https://jcenter.bintray.com/com/github/prongbang/screen-protector/1.0.0/screen-protector-1.0.0.pom
Required by:
project :app > project :screen_protector两者之间可能有联系吗?
非常感谢您的帮助!!
发布于 2022-06-28 15:39:58
我通过将maven { url 'https://jitpack.io/' }添加到安卓/build.gradle解决了这个问题。
但必须将其添加到allProjects中:
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io/' }
}
}我还必须将安卓/app/build.gradle中的minSdkVersion升级为21。
https://stackoverflow.com/questions/72745958
复制相似问题