Closed TJJ123456 closed 10 months ago
I also encountered the same problem……
1) Robolectric 4.7.3 is many years old at this point, please update to 4.12-SNAPSHOT and see if the issue is still there.
2) Mockito-inline is the only officially supported agent-based mocking framework for Robolectric. If you are using others (e.g. PowerMock, Mockk), they may be interfering with the instrumentation Robolectric does on Android classes, and fixing these issues requires in-depth knowledge of the instrumentation that is performed by Powermock. Unfortunately we do not have the time and resources to debug these issues. However, if you'd like to take a deep dive and see what's going on, we'd be happy to provide support for any questions related to Robolectric-based instrumentation.
Closing since there is no sample app or clear repro instructions using 4.12-SNAPSHOT.
Description
When I run test with Coverage in android studio encounter the exception
Steps to Reproduce
My code
My test code
Robolectric & Android Version
Robolectric version: 4.7.3 JDK version: 1.8 Android version: 33