我们安卓开发现阶段使用Java进行后端开发,所以需要使用到jdk进行开发。
jdk的详细安装参考:1 java学习-jdk的安装
这里的路径选择自己创建的文件路径
这里选择自己创建的SDK存放路径
这里我添加的是腾讯的镜像源
#Thu Nov 23 23:48:50 CST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https://mirrors.cloud.tencent.com/gradle/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
allprojects {
repositories {
mavenLocal()
maven { name "Alibaba" ; url "https://maven.aliyun.com/repository/public" }
maven { name "Bstek" ; url "https://nexus.bsdn.org/content/groups/public/" }
mavenCentral()
}
buildscript {
repositories {
maven { name "Alibaba" ; url 'https://maven.aliyun.com/repository/public' }
maven { name "Bstek" ; url 'https://nexus.bsdn.org/content/groups/public/' }
maven { name "M2" ; url 'https://plugins.gradle.org/m2/' }
}
}
}
allprojects {
repositories {
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
mavenCentral()
}
buildscript {
repositories {
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
mavenCentral()
}
}
}
P04-AndroidStudio安装和SDK安装:https://www.bilibili.com/video/BV1oH4y127R1/?spm_id_from=pageDriver&vd_source=0797a32d0de68f949aaa64eb0985608e
p05-配置Gradle的镜像:https://www.bilibili.com/video/BV1tQ4y1478c/?spm_id_from=333.788&vd_source=0797a32d0de68f949aaa64eb0985608e
p08-AndroidStudio新建项目每次都下载Gradle:https://www.bilibili.com/video/BV16u4y1w7VW/?spm_id_from=333.788&vd_source=0797a32d0de68f949aaa64eb0985608e
本文来自博客园,作者:代码改变世界—北枳,转载请注明原文链接:https://www.cnblogs.com/D1DCD/p/18317724
参与评论
手机查看
返回顶部