Skip to content Skip to sidebar Skip to footer

Gradle Fails: Failed To Resolve: Io After Removing Kotlintest

I've created a new Android Project and set up mockk in Intrument test and Unit test: androidTestImplementation 'io.mockk:mockk:{1.9.3}' testImplementation 'io.mockk:mockk:{

Solution 1:

Your version for the mockk library contains {}.

We usually use them when working with a version that is in a variable or in the ext block:

testImplementation "io.mockk:mockk:${Version.mockkVersion}"

In your case, when working with a fixed value, you shouldn't use the braces:

testImplementation "io.mockk:mockk:1.9.3"

It should sync fine with this change

Post a Comment for "Gradle Fails: Failed To Resolve: Io After Removing Kotlintest"