A problem occurred configuring root project ‘android‘.> Could not resolve all artifacts for configu

1.异常描述android studio 构建报错提示无法加载dependencies中的插件

A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve commons-io:commons-io:2.6.
     Required by:
         project :
      > Could not resolve commons-io:commons-io:2.6.

A problem occurred configuring root project ‘android‘.> Could not resolve all artifacts for configu_第1张图片

 问题解决:buildscript中的repositories仓库中添加以以下仓库地址

repositories {
        google()
        jcenter()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }

A problem occurred configuring root project ‘android‘.> Could not resolve all artifacts for configu_第2张图片

你可能感兴趣的:(android)