qwertyfinger
qwertyfinger

Reputation: 634

"Failed to resolve: org.junit:junit:4.12" with AndroidX Test JUnit

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.

Upvotes: 3

Views: 1362

Answers (2)

PSK
PSK

Reputation: 713

The above issue has been fixed in 1.0.0-beta02

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

Upvotes: 3

Summerly
Summerly

Reputation: 149

you can exclude 'org.junit' group manually.

androidTestImplementation("androidx.test.ext:junit:1.0.0-beta01") {
    exclude group: "org.junit"
}

Upvotes: 2

Related Questions