Robolectric 2.4 Nosuchmethoderror Cannot Be Cast To Runtimeexception When Creating Activity
I am starting to use Robolectric in Android Studio. At first I wanted to create a simple test using hamcrest, which is shown below: @RunWith(CustomTestRunner.class) @Config(emulate
Solution 1:
After some more digging it appears that with Robolectric 2.4 some issues with ActionBarActivity
appear. According to this issue full support for appcompat-v7
will be provided in Robolectric 3.0. Indeed trying Robolectric 3.0-SNAPSHOT solved the issue.
Post a Comment for "Robolectric 2.4 Nosuchmethoderror Cannot Be Cast To Runtimeexception When Creating Activity"