android { | ||
14 | 14 | compileSdkVersion 19 |
15 | - buildToolsVersion "25.0.2" | |
16 | 15 | |
17 | 16 | def versionNameFirstNumber = "01" |
18 | 17 | def versionCodeNumber = 106 |
... | ... | @@ -47,12 +46,12 @@ android { |
47 | 46 | targetCompatibility JavaVersion.VERSION_1_7 |
48 | 47 | } |
49 | 48 | |
50 | - applicationVariants.all { variant -> | |
51 | - variant.outputs.each { output -> | |
52 | - def file = output.outputFile | |
53 | - output.outputFile = new File(file.parent, "test_name${variant.versionName}.apk") // _${variant.buildType.name} | |
49 | + android.applicationVariants.all { variant -> | |
50 | + variant.outputs.all { | |
51 | + outputFileName = "test_name${variant.versionName}.apk" | |
54 | 52 | } |
55 | 53 | } |
54 | + | |
56 | 55 | } |
2018年2月2日 星期五
Android Studio 2.3 升到 3.0.1 遇到問題
1.gradle apk 輸出問題
訂閱:
文章 (Atom)