于是这注定是一篇唠唠叨叨的文章。
- 配置rebolectric的时候死活找不到正确的类,看了一眼
build.gradle
文件,结果发现:dependencies { //... testCompile 'junit:junit:4.12' AndroidTestCompile 'org.robolectric:robolectric:3.1.2' //^^^^^^^^^^^^^^^^ WTF?? should be //testCompile 'org.robolectric:robolectric:3.1.2' }