最終更新:2017-08-07 (月) 18:49:15 (2452d)
Android/リリースビルド
build.gradle
- Android Studio/プロジェクト/app/build.gradle
buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }
- minifyEnabled - ProGuard でコードの圧縮を有効にする
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- proguard-rules.proファイルにカスタムProGuardルールを追加することができます。
gradlew assembleRelease
>gradlew assembleRelease To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html. Incremental java compilation is an incubating feature. :app:preBuild UP-TO-DATE :app:extractProguardFiles :app:preReleaseBuild :app:checkReleaseManifest :app:preDebugBuild UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2501Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72501Library UP-TO-DATE :app:prepareComAndroidSupportCardviewV72501Library UP-TO-DATE :app:prepareComAndroidSupportSupportCompat2501Library UP-TO-DATE :app:prepareComAndroidSupportSupportCoreUi2501Library UP-TO-DATE :app:prepareComAndroidSupportSupportCoreUtils2501Library UP-TO-DATE :app:prepareComAndroidSupportSupportFragment2501Library UP-TO-DATE :app:prepareComAndroidSupportSupportMediaCompat2501Library UP-TO-DATE :app:prepareComAndroidSupportSupportV132501Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42501Library UP-TO-DATE :app:prepareComAndroidSupportSupportVectorDrawable2501Library UP-TO-DATE :app:prepareReleaseDependencies :app:compileReleaseAidl UP-TO-DATE :app:compileReleaseRenderscript UP-TO-DATE :app:generateReleaseBuildConfig UP-TO-DATE :app:generateReleaseResValues UP-TO-DATE :app:generateReleaseResources UP-TO-DATE :app:mergeReleaseResources UP-TO-DATE :app:processReleaseManifest UP-TO-DATE :app:processReleaseResources UP-TO-DATE :app:generateReleaseSources UP-TO-DATE :app:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE :app:compileReleaseJavaWithJavac UP-TO-DATE :app:compileReleaseNdk UP-TO-DATE :app:compileReleaseSources UP-TO-DATE :app:lintVitalRelease :app:mergeReleaseShaders UP-TO-DATE :app:compileReleaseShaders UP-TO-DATE :app:generateReleaseAssets UP-TO-DATE :app:mergeReleaseAssets UP-TO-DATE :app:processReleaseJavaRes UP-TO-DATE :app:transformResourcesWithMergeJavaResForRelease UP-TO-DATE :app:transformClassesAndResourcesWithProguardForRelease UP-TO-DATE :app:transformClassesWithDexForRelease UP-TO-DATE :app:mergeReleaseJniLibFolders UP-TO-DATE :app:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE :app:transformNative_libsWithStripDebugSymbolForRelease UP-TO-DATE :app:packageRelease :app:assembleRelease BUILD SUCCESSFUL Total time: 10.876 secs
Generate Signed APK
- 違いは:app:validateSigningRelease?
Executing tasks: [:app:assembleRelease] Configuration on demand is an incubating feature. Incremental java compilation is an incubating feature. :app:preBuild UP-TO-DATE :app:extractProguardFiles :app:preReleaseBuild :app:checkReleaseManifest :app:preDebugBuild UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2501Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72501Library UP-TO-DATE :app:prepareComAndroidSupportCardviewV72501Library UP-TO-DATE :app:prepareComAndroidSupportSupportCompat2501Library UP-TO-DATE :app:prepareComAndroidSupportSupportCoreUi2501Library UP-TO-DATE :app:prepareComAndroidSupportSupportCoreUtils2501Library UP-TO-DATE :app:prepareComAndroidSupportSupportFragment2501Library UP-TO-DATE :app:prepareComAndroidSupportSupportMediaCompat2501Library UP-TO-DATE :app:prepareComAndroidSupportSupportV132501Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42501Library UP-TO-DATE :app:prepareComAndroidSupportSupportVectorDrawable2501Library UP-TO-DATE :app:prepareReleaseDependencies :app:compileReleaseAidl UP-TO-DATE :app:compileReleaseRenderscript UP-TO-DATE :app:generateReleaseBuildConfig UP-TO-DATE :app:generateReleaseResValues UP-TO-DATE :app:generateReleaseResources UP-TO-DATE :app:mergeReleaseResources UP-TO-DATE :app:processReleaseManifest UP-TO-DATE :app:processReleaseResources UP-TO-DATE :app:generateReleaseSources UP-TO-DATE :app:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE :app:compileReleaseJavaWithJavac UP-TO-DATE :app:compileReleaseNdk UP-TO-DATE :app:compileReleaseSources UP-TO-DATE :app:lintVitalRelease :app:mergeReleaseShaders UP-TO-DATE :app:compileReleaseShaders UP-TO-DATE :app:generateReleaseAssets UP-TO-DATE :app:mergeReleaseAssets UP-TO-DATE :app:processReleaseJavaRes UP-TO-DATE :app:transformResourcesWithMergeJavaResForRelease UP-TO-DATE :app:transformClassesAndResourcesWithProguardForRelease UP-TO-DATE :app:transformClassesWithDexForRelease UP-TO-DATE :app:mergeReleaseJniLibFolders UP-TO-DATE :app:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE :app:transformNative_libsWithStripDebugSymbolForRelease UP-TO-DATE :app:validateSigningRelease :app:packageRelease UP-TO-DATE :app:assembleRelease BUILD SUCCESSFUL Total time: 4.826 secs