Can you share more about how you got this to work? I am still getting “final” warnings despite my configuration. I can step through with the debugger and it’s clear that the classes are still marked as final even though it is walking through the AndroidByteBuddyMockMaker path. Still I get this:
org.mockito.exceptions.base.MockitoException:
Cannot mock/spy class MyClassName
Mockito cannot mock/spy because :
- final class
My class is in ordinary Kotlin class (and therefore, “java final.”)
Here’s my setup: