android studio提示 Add Google Maven repository and sync project Open File解决安案

1、androidstudio support包报错 add google maven respository and sync project

2、Add Google Maven repository and sync project Open File

在项目下的build.gradle文件下两个地方都加上google()

android studio提示 Add Google Maven repository and sync project Open File解决安案
1、androidstudio support包报错 add google maven respository and sync project

2、Add Google Maven repository and sync project Open File

在项目下的build.gradle文件下两个地方都加上google()

 

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()//加上这行
//用这个替换jcenter(),避免长时间下载不成功jcenter()
maven{ url 'https://maven.aliyun.com/nexus/content/groups/public/'}
// jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
}
}

allprojects {
repositories {
google()//加上这行
maven{ url 'https://maven.aliyun.com/nexus/content/groups/public/'}
//jcenter()
}
}


最后奉劝大家一点
直接转账或者先确认收货的那种绝对的不靠谱,被骗钱是小事,不能毕业了是大事。

定制讲解加:QQ:884563046 微信:bishe666
包讲解、包抽检、可过后付费、可淘宝交易
微信二维码:
为你提供计算机专业毕业设计题目大全集推荐-计算机毕业论文选题