发布 Android 应用涉及构建发布版本、签名(必需)以及发布到 Google Play(或其他商店),还包括版本控制、测试轨道和持续更新。理解这个过程对于交付应用很重要。
构建发布版本
→ Build a RELEASE variant (optimized, minified/shrunk via R8/ProGuard) — not debug
→ Produce an APP BUNDLE (.aab) — the preferred format for Google Play (Play generates
optimized APKs per device); or an APK
应用签名(必需)
ALL Android apps must be SIGNED with a certificate to be installed/updated:
→ sign with a KEYSTORE (a signing key you must keep SAFE — losing it means you can't
update the app with the same identity!)
→ PLAY APP SIGNING → Google manages your signing key (recommended; you upload with an
upload key, Google signs) — protects against key loss
→ The signature proves the app's authorship and that updates come from the same developer.
