Tried out the suggestions on this post, but I still get the error:
!!! JUnit version 3.8 or later expected: java.lang.RuntimeException: Stub! at junit.r
Solved the issue. I was running the JUnit tests as a standard "JUnit test" in Android Studio. I fixed the issue by resetting the configuration as a Android Test.
Android Studio
Android Test