¦b Android Studio ¤¤ Build APK/AAB ¨Ã Deploy ¨ì Google Play Store ªº§¹¾ã¬yµ{¦p¤U¡G
📌 ¨BÆJ 1¡G¥Í¦¨Ã±¸pª÷Æ_¡]Signing Key¡^
Google Play n¨D©Ò¦³À³¥Î¥²¶·¸g¹L ñ¸p¡]Signing¡^¡A½T«OÀ³¥Î¨Ó·½¥i«H¡C
1.1 ¨Ï¥Î Android Studio ¥Í¦¨Ã±¸pª÷Æ_
- ¿ï³æ ¡÷ Build ¡÷ Generate
Signed Bundle / APK
- ¿ï¾Ü Android
App Bundle (AAB)¡]±ÀÂË¡AGoogle Play Àu¥ý¤ä´©¡^©Î APK¡C
- ÂIÀ» Create
new... ¥Í¦¨·sª÷Æ_¡C
- ¶ñ¼gª÷Æ_¸ê°T¡]°È¥²§´µ½«O¦s¡I¡^¡G
- Key store path¡G¿ï¾ÜÀx¦s¦ì¸m¡]«ØÄ³©ñ±M®×®Ú¥Ø¿ýªº keystore ¸ê®Æ§¨¡^¡C
- Password¡G³]©wª÷Æ_®w±K½X¡C
- Alias¡Gª÷Æ_§O¦W¡]¨Ò¦p upload_key¡^¡C
- Validity (years)¡G«ØÄ³ 25 ¦~¥H¤W¡]Google Play n¨D¦Ü¤Ö 2033 ¦~«á¨ì´Á¡^¡C
- Certificate¡G¶ñ¼g¶}µoªÌ¸ê°T¡]©m¦W¡B²Õ´µ¥¡^¡C
- ÂIÀ» OK ¥Í¦¨ .jks Àɮס]Java Key Store¡^¡C
1.2 ³]©w Gradle ¦Û°Êñ¸p
¦b app/build.gradle ¤¤¥[¤Jñ¸p°t¸m¡G
gradle
Î`¨î
android {
signingConfigs
{
release {
storeFile file("keystore/your_keystore.jks") // ª÷Æ_¸ô®|
storePassword "your_password"
keyAlias "upload_key"
keyPassword "your_key_password"
}
}
buildTypes
{
release {
signingConfig signingConfigs.release
minifyEnabled true // ±Ò¥Î²V²c
shrinkResources true // ²¾°£¥¼¥Î¸ê·½
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
'proguard-rules.pro'
}
}
}
📌 ¨BÆJ 2¡G¥Í¦¨ Release ª©¥» AAB/APK
2.1 ¥Í¦¨ Android App Bundle
(AAB)
- ¿ï³æ ¡÷ Build ¡÷ Generate
Signed Bundle / APK
- ¿ï¾Ü Android
App Bundle (AAB)¡]Google Play ±ÀÂˮ榡¡^¡C
- ¿ï¾Üèè«Ø¥ßªºÃ±¸pª÷Æ_¡A¿é¤J±K½X¡C
- ÂIÀ» Next¡A¿ï¾Ü release ª©¥»¡C
- §¹¦¨«á¡AAAB ÀÉ®×·|¥Í¦¨¦b app/release/ ¥Ø¿ý¤U¡]¨Ò¦p app-release.aab¡^¡C
2.2 ©Î¥Í¦¨ APK¡]¸û¤覡¡^
- ¿ï³æ ¡÷ Build ¡÷ Generate
Signed Bundle / APK
- ¿ï¾Ü APK¡C
- «áÄò¨BÆJ»P AAB
¬Û¦P¡A¥Í¦¨Àɮ׬° app-release.apk¡C
📌 ¨BÆJ 3¡G¤W¶Ç¦Ü Google Play
Console
3.1 ·Ç³Æ Google Play ¶}µoªÌ±b¸¹
- µù¥U Google Play
Console¡]»Ý¤ä¥I $25 ¬ü¤¸¤@¦¸©Ê¶O¥Î¡^¡C
- «Ø¥ßÀ³¥Î¡]¶ñ¼g À³¥Î¦WºÙ¡B¹w³]»y¨¥¡BÃþ§O µ¥¡^¡C
3.2 ¤W¶Ç AAB/APK
- ¶i¤J Google
Play Console ¡÷ ¿ï¾Ü§AªºÀ³¥Î¡C
- ¥ª°¼¿ï³æ
¡÷ Release ¡÷ Production¡]¥¿¦¡ª©¡^©Î Internal
testing¡]¤º³¡´ú¸Õ¡^¡C
- ÂIÀ» Create
new release¡G
- ¤W¶Ç
AAB/APK ÀɮסC
- ¶ñ¼g Release
notes¡]ª©¥»§ó·s»¡©ú¡^¡C
- ÂIÀ» Save ¡÷ Review
release¡]ÀˬdµL»~«á´£¥æ¼f®Ö¡^¡C
3.3 ³]©wÀ³¥Î¸Ô²Ó¸ê°T¡]º¦¸¤W¬[¡^
- Store Listing¡G¶ñ¼gÀ³¥Î´yz¡B¿Ã¹õºI¹Ï¡B¹Ï¥Üµ¥¡C
- Content Rating¡G§¹¦¨¤º®e¤À¯Å°Ý¨÷¡C
- App Content¡G´£¥æÁô¨pÅv¬Fµ¦¡]¦pÀ³¥Î»ÝnÅv¡^¡C
- Pricing & Distribution¡G¿ï¾Ü§K¶O©Î¥I¶O¡A¨Ã¿ï¾Ü¤W¬[°ê®a¡C
📌 ¨BÆJ 4¡G´£¥æ¼f®Ö¨Ãµo¥¬
- ªð¦^ Release ¶±¡A½T»{¸ê°TµL»~«áÂIÀ» Start rollout to Production¡C
- Google Play ¹Î¶¤·|¶i¦æ¼f®Ö¡]³q±` ´X¤p®É¨ì´X¤Ñ¡Aº¦¸¤W¬[¥i¯à¸û¤[¡^¡C
- ¼f®Ö³q¹L«á¡AÀ³¥Î·|¦Û°Êµo¥¬¦Ü Google Play¡I
🚀 ³Ì¨Î¹ê½î
- ¨Ï¥Î AAB ®æ¦¡¡GGoogle
Play ±ÀÂË¡A¥i´î¤Ö¥Î¤á¤U¸ü¤j¤p¡C
- ±Ò¥Î App
Signing by Google Play¡GÅý Google ºÞ²zñ¸pª÷Æ_¡AÁ×§K¿ò¥¢¡C
- ´ú¸Õ¶¥¬q¨Ï¥Î
Internal/Closed Testing¡G¥ýÅý¤p³¡¤À¥Î¤á´ú¸Õ¡A¦A¥¿¦¡µo¥¬¡C
- ºÊ±±±Y¼ì³ø§i¡G¾ã¦X
Firebase Crashlytics °lÂÜ¿ù»~¡C
§¹¦¨«á¡A§AªºÀ³¥Î´N·|¥X²{¦b Google Play °Ó©±¨Ñ¥Î¤á¤U¸ü¡I🎉