Could not resolve com.commonsware.cwac:saferoom.x:1.0.0[SOLVED]

Solution 1:

Add

maven {
    url "https://s3.amazonaws.com/repo.commonsware.com"
}

in your project level gradle file like this

allprojects {
    repositories {
        google()
        mavenCentral()
        maven {
            url "https://s3.amazonaws.com/repo.commonsware.com"
        }
    }
}

And try other versions like 1.1.2 or 1.1.1

implementation 'com.commonsware.cwac:saferoom.x:1.1.2'

because looks like the 1.0.0 is not available.

Reference - https://github.com/commonsguy/cwac-saferoom/blob/master/README-original.markdown#installation