解决方法:1.studio里面->setting->Build,Execution,Deployment里面的Gradle->配置此项目的gradle文件路径为studio应用所使用的版本路径(如果还报错,查看gradle版本是否与studio版本一致)