ANDROID.md
MockK supports:
To open classes before Android P you can use DexOpener, example
Implementation is based on dexmaker project. With Android P, instrumentation tests may use full power of inline instrumentation, so object mocks, static mocks and mocking of final classes are supported. Before Android P, only subclassing can be employed, so you will need the 'all-open' plugin.
Unfortunately, public CIs such as Travis and Circle are not supporting Android P emulation due to the absence of ARM Android P images. Hopefully, this will change soon.
All you need to get started is by adding a dependency to MockK library.
testImplementation "io.mockk:mockk:{version}"
androidTestImplementation "io.mockk:mockk-android:{version}"
Check full documentation here