0Pricing
Jetpack Compose Academy · レッスン

署名付きリリース用アプリバンドル

配布用の .aab をビルドして署名します

「署名付きリリース用アプリバンドル」はCoddyKit上の無料Jetpack Compose Academyレッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはJetpack Compose Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Jetpack Compose Academyコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

From Debug to Release

Your debug builds run on your device, but the Play Store needs a release build: optimized, shrunk, and cryptographically signed by you.

AAB, Not APK

The Play Store wants an Android App Bundle (.aab), not an APK. Google generates device-specific APKs from it, so users download only what they need.

What Signing Proves

A signing key proves every update truly comes from you. Android refuses to install an update signed by a different key, which protects your users.

Create an Upload Keystore

You generate a keystore file holding your key. Guard it and its passwords carefully: lose them and you can lock yourself out of updating the app.

keytool -genkey -v \
  -keystore upload.jks \
  -alias upload

Keep Secrets Out of Git

Never commit passwords. Put them in gradle.properties (gitignored) or environment variables and read them in your build config.

RELEASE_STORE_PASSWORD=...
RELEASE_KEY_ALIAS=upload

Configure the signingConfig

In build.gradle you declare a signingConfig that points to the keystore and credentials, then attach it to the release build type.

signingConfigs {
    create("release") { /* keystore */ }
}

Shrink with R8

Turn on minifyEnabled for release. R8 removes unused code and obfuscates names, making your bundle smaller and harder to reverse engineer.

release {
    isMinifyEnabled = true
}

Build the Bundle

Run the bundleRelease Gradle task. It compiles, shrinks, and signs your app, producing a release .aab ready to upload.

./gradlew bundleRelease

Quick Check

You are packaging your app for the Play Store. Which artifact should you upload?

Let Google Manage Signing

With Play App Signing, Google holds the final app signing key and you keep only an upload key. If your upload key is lost, you can reset it.

Test the Release Build

Before publishing, install the signed build via an internal testing track. R8 can break reflection, so confirm everything works in the optimized variant.

Bump Your versionCode

Every upload needs a higher versionCode than the last. The Play Store rejects duplicates, so increment it on each release before you build.

versionCode = 2
versionName = "1.1"

Recap: Ready to Upload

You created a keystore, set up a signingConfig, shrank with R8, and built a signed .aab. Your app is ready for the Play Console.

よくある質問

「署名付きリリース用アプリバンドル」レッスンは無料ですか?

はい。「署名付きリリース用アプリバンドル」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Jetpack Compose Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Jetpack Compose Academyコースには全4レッスンが含まれています。

「署名付きリリース用アプリバンドル」で何を学びますか?

配布用の .aab をビルドして署名します ブラウザで直接実行するハンズオンコードでJetpack Compose Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

Jetpack Compose Academyを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのJetpack Compose Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。

「署名付きリリース用アプリバンドル」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このJetpack Compose Academyレッスンでコードを書いて実行できますか?

はい。すべてのJetpack Compose Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. アクセシビリティとエッジツーエッジUI
  2. 高速起動のためのBaseline Profile
  3. 署名付きリリース用アプリバンドル
  4. Compose Multiplatform対応アーキテクチャ
← Jetpack Compose Academyに戻る