【Android使用阿里镜像】休言女子非英物,夜夜龙泉壁上鸣。这篇文章主要讲述Android使用阿里镜像相关的知识,希望能为你提供帮助。
在学习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 studio安装及配置
- 简单实现Android手机“全局可调试”(ro.debuggable = 1)的方法锤子坚果3
- 使用idea编写Android程序,减小编译时间
- uniapp - 导航切换(样式)
- Android长按及拖动事件探究
- Android调试注解处理器AnnotationProcessor
- android----SharedPreference
- APP测试-SDK环境以及adb for Windows
- Leetcode 1031 Maximum Sum of Two Non-Overlapping Subarrays (滑动窗口)