0
我收到错误The method buildActivity(Class<ActivityMain>) is undefined for the type Robolectric
,同时用robolectric
测试而使用像方法buildActivity(类<MainActivity>)是未定义的类型Robolectric
activity = Robolectric.buildActivity(MainActivity.class).create().visible().get();
I am using the given jars in my lib folder
fest-android-1.0.8.jar
fest-assert-core-2.0M10.jar
fest-util-1.1.6.jar
hamcrest-core-1.3.jar
junit-4.11-sources.jar
junit-4.11.jar
mockito-core-1.9.5.jar
robolectric-2.3-jar-with-dependencies.jar
robolectric-with-dependencies.jar
然而,该方法这个问题以前提出但没有应答发布此问题。 这里是link