在新工程根目录的build.gradle 文件中增加 Maven 仓库地址时引起的错误 原因:buildscript{}位置放在了plugins{}的下方解决方法:将buildscript{}调整到最上方。