Reputation: 634
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
Reputation: 713
The above issue has been fixed in 1.0.0-beta02
'androidTestImplementation "androidx.test.ext:junit:1.0.0-beta02'
Upvotes: 3
Reputation: 149
you can exclude 'org.junit' group manually.
androidTestImplementation("androidx.test.ext:junit:1.0.0-beta01") {
exclude group: "org.junit"
}
Upvotes: 2