错误:Build was configured to prefer settings repositories over project repositories but repository ‘maven’ was added by build file ‘build.gradle’ 解决方案: Android 引入了一种定义存储库的新方法。 从文件中删除dependencyResolutionManagement块,setting.gradle让项目以旧方式工作。