I created gradle from the deckrd-gradle project . The problem is that when I run the test (in Android Studio), I get this error:No signature of method: com.android.build.gradle.AppPlugin.getBootClasspath() is applicable for argument types: () values: []
My gradle file:
(removed it because here wa everything OK)
Testing Class:
@RunWith(RobolectricTestRunner.class)
public class MainActivityTest {
@Test
public void testSomething() throws Exception {
Activity activity = Robolectric.buildActivity(MainActivity_.class).create().get();
assertThat(activity).isNotNull();
}
}
Magx2 source
share