The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin. P 云深 2018-08-08 656 阅读1分钟 情境 Android Studio升级过程中碰到标题问题,编译时出现 The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin. Perhaps you misspelled something? 解决方案 在所有的build.gradle里面找到所有instrumentTest,替换成androidTest,编译运行就好了