The new version of Android studio loads maven

1. Add this line before the plugins of bulid.gradle 
buildscript { 
    repositories { 
        gradlePluginPortal() 
    } 
    dependencies { 
        classpath "com.yanzhenjie.andserver:plugin:2.1.9" 
    } 
}

The second step, add to the repositories of dependencyResolutionManagement in setting.gradle

maven { url 'https://jitpack.io' }

as shown in the picture

 

Guess you like

Origin blog.csdn.net/weixin_51315931/article/details/126319698