該問題是升級android studio3.0導致的。
解決辦法:
在build.gradle中
注釋掉:
apply plugin: 'android-apt',將apt改成annotationProcessor
以及一些其他問題
The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin. Perhaps you misspelled something?
解決辦法:用 androidTest 替換 instrumentTest