Android使用阿里镜像

Android使用阿里镜像,第1张

概述在学习room时项目一直在编译中,最后排查发现是依赖没有下载完导致。随后查询将依赖下载源改为阿里源,即可正常使用。需要修改build.gradle(project),改为以下内容://Top-levelbuildfilewhereyoucanaddconfigurationoptionscommontoallsub-projects/modules.buildscr

在学习room时项目一直在编译中,最后排查发现是依赖没有下载完导致。随后查询将依赖下载源改为阿里源,即可正常使用。

需要修改 build.gradle (project),改为以下内容:

// top-level build file where you can add configuration options common to all sub-projects/modules.buildscript {    repositorIEs {        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }        maven { url 'http://maven.aliyun.com/nexus/content/repositorIEs/jcenter' }        Google()        //jcenter()            }    dependencIEs {        classpath 'com.androID.tools.build:gradle:3.5.3'                // NOTE: Do not place your application dependencIEs here; they belong        // in the indivIDual module build.gradle files    }}allprojects {    repositorIEs {        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }        maven { url 'http://maven.aliyun.com/nexus/content/repositorIEs/jcenter' }        Google()        //jcenter()            }}task clean(type: Delete) {    delete rootProject.buildDir}

 

总结

以上是内存溢出为你收集整理的Android使用阿里镜像全部内容,希望文章能够帮你解决Android使用阿里镜像所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1065292.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-26
下一篇2022-05-26

发表评论

登录后才能评论

评论列表(0条)

    保存