Mockito fails with inlined mocks enabled with Invalid paramter name exception

I got around this by upgrading to the latest version of mockito. Currently it is:

testImplementation "org.mockito:mockito-core:2.25.1"

After that I had some build errors which was resolved by selecting

File->Invalidate Caches / Restart...

Leave a Comment

File not found.