云炬Android开发笔记 使用新版本Android(安卓)studio快速Build低版本项目的仓库代码(标红部分)
16lz
2021-01-25
buildscript { repositories { maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} //使用阿里云镜像替换原有的jecter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.2' classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1' classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // 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/'} //使用阿里云镜像替换原有的jecter() maven { url 'https://www.jitpack.io' } maven { url 'https://maven.google.com' } maven { url "https://dl.gooqle.com/dl/android/maven2/"} }}
task clean(type: Delete) { delete rootProject.buildDir}
更多相关文章
- 阿里巴巴Android(安卓)技术规范文档知识点(个人认为有用的)
- Android(安卓)studio 3.5.3 第一次启动卡在gradle sync,run是灰色
- Android(安卓)Studio 项目gradle构建 仓库切换国内阿里源。
- Android移动热修复--Sophix
- Android(安卓)Stuido无法下载jcenter库
- Android(安卓)Studio Gradle Sync同步慢问题
- 【Android导航决 君子生非异也 善假于物也】优秀博客
- Android(安卓)Studio 新建项目一直在 Gradle Sync 的问题
- Gradle 修改 Maven 仓库地址