Skip to content

Commit b2b28d8

Browse files
committed
1:给Gradle加了点注释。
1 parent c1f07ef commit b2b28d8

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ buildscript {
77
}
88

99
dependencies {
10+
//classpath "com.android.tools.build:gradle:$localGradlePluginVersion"
11+
//$localGradlePluginVersion是gradle.properties中的数据
1012
classpath "com.android.tools.build:gradle:$localGradlePluginVersion"
1113
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
12-
// NOTE: Do not place your application dependencies here; they belong
13-
// in the individual module build.gradle files
1414
}
1515
}
1616

@@ -34,6 +34,7 @@ task clean(type: Delete) {
3434
// Define versions in a single place
3535
ext {
3636
// Sdk and tools
37+
//localBuildToolsVersion是gradle.properties中的数据
3738
buildToolsVersion = localBuildToolsVersion
3839
compileSdkVersion = 25
3940
minSdkVersion = 15

gradle.properties

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ org.gradle.jvmargs=-Xmx1536m
1717
org.gradle.daemon=true
1818
org.gradle.configureondemand=true
1919
org.gradle.parallel=true
20+
2021
# 为自动化出包配置(因为每个开发的电脑坏境不一致)
2122
localBuildToolsVersion=25.0.2
22-
localGradlePluginVersion=2.3.0
23+
# 这个值一般跟你的AndroidStudio版本号一致
24+
localGradlePluginVersion=2.3.1
2325

2426
# 每次更改“isModule”的值后,需要点击 "Sync Project" 按钮
25-
isModule=true
27+
isModule=false

screenshots/starmean.PNG

397 Bytes
Loading

0 commit comments

Comments
 (0)