Open the build.gradle file within the app folder and add a dependency for Robolectric: testCompile 'org.robolectric:robolectric:3.0' 3.
確定! 回上一頁