1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| def projectName = "projectName" android { signingConfigs { debug { storeFile file("./debug.keystore") storePassword '123456' keyAlias 'key0' keyPassword '123456' } release { storeFile file("./debug.keystore") storePassword '123456' keyAlias 'key0' keyPassword '123456' } } applicationVariants.all { variant -> variant.outputs.all { String fileName = projectName + defaultConfig.versionName + buildType.name + ".apk" println "fileName:" + fileName outputFileName = fileName; } } compileOptions { targetCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8 } }
|