新版AndroidStudio配置maven阿里云镜像

04-27 1418阅读 0评论

project下的build.gradle: 

新版AndroidStudio配置maven阿里云镜像,新版AndroidStudio配置maven阿里云镜像,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,配置,阿里云,镜像,第1张
(图片来源网络,侵删)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
// 注意jdk版本需要17以上,因为8.1.3的gradle需要jdk17以上
//plugins {
//    id 'com.android.application' version '8.1.3' apply false
//}
buildscript {
    repositories {
        maven { url 'https://maven.aliyun.com/repository/central' }
        maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
        maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
        maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
        maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:8.1.3'
    }
}
// 下面这个allprojects不需要,旧版的需要这个
//allprojects {
//    repositories {
//        maven { url 'https://maven.aliyun.com/repository/central' }
//        maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
//        maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
//        maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
//        maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
//        google()
//    }
//}
task clean(type: Delete) {
    delete rootProject.buildDir
}

gradle.properties配置如下:

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
新版AndroidStudio配置maven阿里云镜像,新版AndroidStudio配置maven阿里云镜像,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,配置,阿里云,镜像,第2张
(图片来源网络,侵删)
新版AndroidStudio配置maven阿里云镜像,新版AndroidStudio配置maven阿里云镜像,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,配置,阿里云,镜像,第3张
(图片来源网络,侵删)

免责声明
本网站所收集的部分公开资料来源于AI生成和互联网,转载的目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。

发表评论

快捷回复: 表情:
评论列表 (暂无评论,1418人围观)

还没有评论,来说两句吧...

目录[+]