Failed to resolve mockito-kotlin dependency
See original GitHub issueHi! I have
Error:Failed to resolve: com.nhaarman:mockito-kotlin-kt1.1:1.5.+
in the version 1.32.
I think it’s because of 1.5.+ versioning.
Excluding the module and adding dependency with 1.5.0 solves the issue.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Error:Failed to resolve: org.mockito:mockito-core
Solution: Change the dependency version to 2.13.0 instead of 2.13.3, then it works fine. Lessons Learnt: Always check with mvnrepository, ...
Read more >Doesn't work for Android tests · Issue #200 · mockito ... - GitHub
I am using this lib successfully for unit tests, but when I try to use it for an instrumented Android test, I get...
Read more >Importing a Gradle project fails with an exception in the latest ...
I've disabled the kotlin plugin, but still see the error: exception during working with external ... Could not resolve all dependencies for configuration ......
Read more >Downgrading versions and excluding dependencies
Gradle resolves any dependency version conflicts by selecting the latest ... Then this would trigger a resolution error because A says it needs...
Read more >Unit Testing with Mockito on Kotlin Android Project with ...
the reason is when Mockito mocks an object normally it extends the requested class to create an instance, but all Kotlin classes are...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yep, now all is ok!
Thanks for confirming 😃