赞
踩
该博客主要目的是备忘一下,android studio 3.5.1版本使用的gradle-5.4.1-all的正规配置:
1、工程根目录下的build.gradle, 配置如下:
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
-
- buildscript {
- repositories {
- google()
- jcenter()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:3.5.1'
-
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
- }
-
- allprojects {
- repositories {
- google()
- jcenter()
- }
- }
-
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
![](https://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png)
</
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。