Last active
August 29, 2015 13:59
-
-
Save myamamic/10696890 to your computer and use it in GitHub Desktop.
[android][Android Studio] Android Studio (gradle)で、signed apkを作成
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) build.gradleに以下の用に記載 | |
android { | |
... | |
signingConfigs { | |
debug { | |
storeFile file("debug.keystore") | |
} | |
myConfig { | |
storeFile file("release.keystore") | |
storePassword "password" | |
keyAlias "key_alias" | |
keyPassword "password" | |
} | |
} | |
buildTypes { | |
release { | |
runProguard false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' | |
debuggable false | |
jniDebugBuild false | |
signingConfig signingConfigs.myConfig | |
} | |
} | |
} | |
2) コマンドラインから、gradle assembleRelease | |
3) ./build/apk/以下に、XXX-release.apkが生成されている。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment