3

When I try to add dependency on AndroidX Test JUnit 1.0.0-beta01: androidTestImplementation androidx.test.ext:junit:1.0.0-beta01, Gradle Sync fails with the following error:

Failed to resolve: org.junit:junit:4.12

All manipulations with adding org.junit dependency manually didn't help either.

qwertyfinger
  • 634
  • 7
  • 16

2 Answers2

3

The above issue has been fixed in 1.0.0-beta02

'androidTestImplementation "androidx.test.ext:junit:1.0.0-beta02'

PSK
  • 583
  • 7
  • 15
2

you can exclude 'org.junit' group manually.

androidTestImplementation("androidx.test.ext:junit:1.0.0-beta01") {
    exclude group: "org.junit"
}
Summerly
  • 109
  • 1
  • 4