The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin. Perhaps you misspelled something?

在Android Studio 3.0.1的时候没有这个问题,但是更新到3.1.0之后,也更新了Gradle出现这个问题。

解决办法:
用androidTest替换instrumentTest重新编译就好了。

摘自:https://stackoverflow.com/questions/49511200/the-sourceset-instrumenttest-is-not-recognized-by-the-android-gradle-plugin

你可能感兴趣的:(The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin. Perhaps you misspelled something?)