Could not resolve all task dependencies for configuration ':app:crewforceReleaseRuntimeClasspath'.
> Could not resolve com.commonsware.cwac:saferoom.x:1.0.0.
Required by:
project :app
> Could not resolve com.commonsware.cwac:saferoom.x:1.0.0.
> Could not get resource 'http://trovmbuildagt1:8081/artifactory/libs-release-local/com/commonsware/cwac/saferoom.x/1.0.0/saferoom.x-1.0.0.pom'.
> Could not HEAD 'http://trovmbuildagt1:8081/artifactory/libs-release-local/com/commonsware/cwac/saferoom.x/1.0.0/saferoom.x-1.0.0.pom'.
> Connect to trovmbuildagt1:8081 [trovmbuildagt1/208.64.239.185] failed: Connection timed out: no further information
> Could not resolve com.commonsware.cwac:saferoom.x:1.0.0.
> Could not get resource 'https://kotlin.bintray.com/kotlinx/com/commonsware/cwac/saferoom.x/1.0.0/saferoom.x-1.0.0.pom'.
> Could not HEAD 'https://kotlin.bintray.com/kotlinx/com/commonsware/cwac/saferoom.x/1.0.0/saferoom.x-1.0.0.pom'. Received status code 502 from server: Bad Gateway在构建应用程序时,我得到了这个错误,对此有任何修复吗?
发布于 2022-01-13 04:40:44
添加
maven {
url "https://s3.amazonaws.com/repo.commonsware.com"
}在项目级别的gradle文件中,如下所示
allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://s3.amazonaws.com/repo.commonsware.com"
}
}
}并尝试其他版本,如1.1.2或1.1.1
implementation 'com.commonsware.cwac:saferoom.x:1.1.2'因为看起来1.0.0是不可用的。
参考- https://github.com/commonsguy/cwac-saferoom/blob/master/README-original.markdown#installation
https://stackoverflow.com/questions/70691214
复制相似问题