#1 app/build.gradle을 아래와 같이 수정
android {
//APK 이름 명시적으로 변경하기
def APP_NAME = "Text Animation"
compileSdkVersion 26
defaultConfig {
applicationId "com.overface.learningandroid"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
//APK 이름 명시적으로 변경하기
archivesBaseName = APP_NAME
}
}
#2
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
/**
* variant.name : release, debug 등 build variants 에 설정된 target
* variant.versionName : defaultConfig 에 정의된 versionName
*/
applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = APP_NAME + "${variant.name}-${variant.versionName}.apk"
}
}
}
}
출처 :
'android' 카테고리의 다른 글
[NDK] so 포함한 apk가 so loading 실패 (2) (0) | 2018.06.19 |
---|---|
[NDK] so 포함한 apk가 so loading 실패 (0) | 2018.06.18 |
android sdk build tool update 방법 (0) | 2018.06.18 |
platform build with app including gradle. (0) | 2018.06.18 |
[JNI]add prebuilt shared library (0) | 2018.06.14 |