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
I am getting this error while building the app , any fix for this?
Add
in your project level gradle file like this
And try other versions like
1.1.2or1.1.1because looks like the
1.0.0is not available.Reference - https://github.com/commonsguy/cwac-saferoom/blob/master/README-original.markdown#installation