79344543

Date: 2025-01-10 03:44:54
Score: 0.5
Natty:
Report link

In my case, adding below to my build.gradle fix the issue,

testOptions {
    unitTests {
        includeAndroidResources = true
        all {
            it.systemProperty("robolectric.dependency.repo.url", "https://oss.sonatype.org/service/local/repositories/releases/content/")
        }
    }
}

From the error message, I searched "android-all" from , and found its path: https://oss.sonatype.org/service/local/repositories/releases/content/org/robolectric/android-all/15-robolectric-12650502/android-all-15-robolectric-12650502.jar, so I set the repo url to https://oss.sonatype.org/service/local/repositories/releases/content/ and it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RockyJerry