How to Publish Your Unity Game on Google Play Store
To publish a Unity game on the Google Play Store, first build your game as an Android APK or AAB using
File > Build Settings. Then, create a Google Play Developer account, prepare your app listing, upload the signed APK/AAB, and submit it for review in the Google Play Console.Syntax
Publishing a Unity game to the Play Store involves these key steps:
- Build Settings: Choose Android platform and set build options.
- Player Settings: Configure package name, version, and signing keys.
- Google Play Console: Upload your signed APK or AAB and fill app details.
unity
File > Build Settings > Platform: Android > Switch Platform Player Settings > Other Settings > Package Name (e.g., com.yourcompany.yourgame) Player Settings > Publishing Settings > Keystore Manager > Create or use existing keystore Build > Build or Build and Run Google Play Console > Create App > Upload APK/AAB > Fill Store Listing > Submit
Example
This example shows how to set up your Unity project for Android and build a signed APK ready for Play Store upload.
csharp
using UnityEditor; public class BuildScript { public static void BuildAndroidGame() { // Set build target to Android EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTargetGroup.Android, BuildTarget.Android); // Set package name PlayerSettings.applicationIdentifier = "com.example.mygame"; // Set version PlayerSettings.bundleVersion = "1.0.0"; // Set keystore info (assumes keystore already created) PlayerSettings.Android.useCustomKeystore = true; PlayerSettings.Android.keystoreName = "user.keystore"; PlayerSettings.Android.keystorePass = "keystorepassword"; PlayerSettings.Android.keyaliasName = "keyalias"; PlayerSettings.Android.keyaliasPass = "keyaliaspassword"; // Build the APK BuildPipeline.BuildPlayer(new[] {"Assets/Scenes/MainScene.unity"}, "Builds/MyGame.apk", BuildTarget.Android, BuildOptions.None); } }
Output
Build completes and creates Builds/MyGame.apk ready for upload.
Common Pitfalls
Common mistakes when publishing Unity games to Play Store include:
- Using a debug keystore instead of a release keystore, causing upload rejection.
- Incorrect package name format (must be unique and use reverse domain style).
- Not enabling
Internet Accessif your game needs network features. - Uploading unsigned or improperly signed APK/AAB files.
- Not setting the correct minimum API level in Player Settings.
csharp
/* Wrong: Using debug keystore (default) */ PlayerSettings.Android.useCustomKeystore = false; /* Right: Use custom release keystore */ PlayerSettings.Android.useCustomKeystore = true; PlayerSettings.Android.keystoreName = "myrelease.keystore"; PlayerSettings.Android.keystorePass = "password"; PlayerSettings.Android.keyaliasName = "myalias"; PlayerSettings.Android.keyaliasPass = "password";
Quick Reference
Summary tips for publishing your Unity game on Google Play Store:
- Set unique package name in
Player Settings > Other Settings. - Create and use a release keystore for signing your app.
- Build as APK or AAB (recommended for Play Store).
- Test your build on real devices before uploading.
- Fill all required fields in Google Play Console including screenshots and privacy policy.
- Submit your app and wait for review.
Key Takeaways
Always use a unique package name and proper versioning in Player Settings.
Sign your Android build with a release keystore before uploading to Play Store.
Build your game as an APK or AAB using Unity's Build Settings targeting Android.
Create a Google Play Developer account and complete all store listing details.
Test your signed build on devices to ensure it runs before publishing.