| [안드로이드] 안드로이드 스튜디오에서 빌드 파일 이름 수정하기. |
|
|
 |
10년 전 |
build.gradle 파일을 열고,
빌드 타입 노드에 applicationVariants.all 함수를 구현한다. 여기에서는 'app' 이름을 '앱이름-버전'로 변경한다.
android {
defaultConfig {
applicationId "앱이름 패키지명"
minSdkVersion 16
targetSdkVersion 22
versionCode 10000
versionName "1.0.0"
}
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled true
proguardFile 'proguard-rules.txt'
applicationVariants.all { variant ->
variant.outputs.each {
output->
def file = output.outputFile
output.outputFile = new File(file.parent,
file.name.replace("app", "앱이름-" + defaultConfig.versionName))
}
}
}
debug {
signingConfig signingConfigs.debug
minifyEnabled false
proguardFile 'proguard-rules.txt'
}
}
}
|
|
추천 : 493 |
추천
목록
|
|