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