AndroidStuido升级3.1遇到的坑

升级后Gradle编译的时候提示:The SourceSet ‘instrumentTest’ is not recognized by the Android Gradle Plugin. Perhaps you misspelled something?

解决办法:在gradle中请找到:instrumentTest.setRoot(‘tests’)
更换为: androidTest.setRoot(‘tests’)即可

    原文作者:木子岩
    原文地址: https://www.jianshu.com/p/49610f9687e9
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞