Robolectric 3.0 java.lang.NoSuchMethodException on create activity
问题 I was excited to hear that android studio had made some updates to make unit testing simple to do in android studio so I have been trying to set up roboelectric but I cant get past this error that occurs during the following method. MainActivity = Robolectric.buildActivity(MainActivity.class).create().get(); with the following stacktrace Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: java.lang.Object.attach(android.content.Context, android.app.ActivityThread, android