This page contains information about Google Play-specific delivery requirements and considerations.
For information on how to publish your application on Google Play, see Google Play.
Google Play has requirements an application must fulfil before you publish it. This section describes Google Play-specific requirements and explains how to meet them.
Google Play requires new apps to be an Android App Bundle (AAB) instead of an APKThe Android Package format output by Unity. An APK is automatically deployed to your device when you select File > Build & Run. More info
See in Glossary. For information on why, refer to The future of Android App Bundles is here.
To configure an application to be an AAB:
Open Android Player Settings.
In the Publishing Settings section, enable Split Application Binary.
Select File > Build Settings.
From the list of platforms in the Platform pane, select Android.
Enable Build App Bundle (Google Play). If you want to export the project and build it in Android Studio, enable Export Project then enable Export for App Bundle.
Note: Build App Bundle (Google Play) setting is visible only if you disable Export Project setting.
Now when you build the application, Unity builds the application as an AAB.
Google Play limits the install size of applications. The following table describes the size limitations Google Play has for each application type:
Application type | Size limitation |
---|---|
APK | If you split the application binary or use a custom expansion file, the APK must be smaller than 100MB and the expansion file must be smaller than 2GB. Otherwise, the APK must be smaller than 100MB. |
AAB | If you split the application binary or use custom asset packs, the base module inside the AAB must be smaller than 200MB and the asset packs must fit the file sizes described in Android’s Download Size Limits documentation. Otherwise, the AAB must be smaller than 200MB. |
For information on how to optimize the install size of your application, refer to Optimize distribution size.
Google Play limits the size of the symbols package or the embedded symbols within an Android App Bundle. The symbols files might be rejected if their file size exceeds this limit. Unity displays a warning if your symbols package exceeds the size limit specified in the Symbols size threshold in the Android Player SettingsSettings that let you set various player-specific options for the final game built by Unity. More info
See in Glossary.
Texture compressions targeting is a feature of Android App Bundles that helps Google Play to generate and serve optimized APKs for different devices. If you enable it, Unity includes texture assets formatted with different compression formats in any Android App Bundles that it builds. When a device installs the application from Google Play, the APKs that the device receives contain texture assets that use the optimal texture compression3D Graphics hardware requires Textures to be compressed in specialized formats which are optimized for fast Texture sampling. More info
See in Glossary format for the device.
Texture compression targeting also automatically enables the split application binary feature and generates an install-time asset pack called UnityTextureCompressionsAssetPack. This asset pack contains common resources and assets required by the first sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary. When texture compression targeting is disabled, Unity packs these assets into the base module. This means that enabling texture compression targeting reduces the size of the base module. This can be important because the base module has a size limit of 200MB. For more information on how Unity configures asset packs, refer to Asset packs in Unity.
To enable texture compression targeting:
PlayerSettings.Android.textureCompressionFormats
API to assign the required texture compression formats.Note: When Texture compression targeting is enabled, Unity disables and ignores the Texture Compression Android Build Settings which means you can’t use this setting to override the texture compression format for a build.
If you don’t enable Android App Bundles and export or build your application as an APK, Unity only uses the first texture compression format in the Texture Compression Formats list.
If you want some texture assets to use specific texture compression formats, you can override their texture compression format. The value you set for an individual texture overridesPlatform-specific settings that allow you to set the resolution, file size with associated memory size requirements, pixel dimensions, and quality of your Textures for each target platform. More info
See in Glossary the default texture compression format and the optimal format that Google Play would select for specific target devices. For information on how to change the texture formatA file format for handling textures during real-time rendering by 3D graphics hardware, such as a graphics card or mobile device. More info
See in Glossary of individual textures, refer to Texture Importer.
Google Play requires applications to support 64-bit architecture. For more information, refer to Support 64-bit architectures. To make your application support 64-bit architecture:
Google Play requires applications to support a minimum target API. For information on what the current minimum target API is, refer to Meet Google Play’s target API level requirement.
To change your application’s target API:
Google Play can check the Package Manager and Asset StoreA growing library of free and commercial assets created by Unity and members of the community. Offers a wide variety of assets, from textures, models and animations to whole project examples, tutorials and Editor extensions. More info
See in Glossary packages that your application uses for known certification failures. It does this automatically after you upload your application to the Play Store and before the main certification process begins. This helps to identify issues with your application’s dependencies quickly without running the full certification process. If Google Play finds issues, it reports them to you via the Play Store Console along with details about the issues and how you can fix them before you submit the application again.
To report dependencies:
Google Play requires applications to be signed. For information on how to sign your application, refer to Android Keystore Manager.
This section contains Google Play-specific considerations to be aware of before you publish an application to Google Play.
To help launch an Android application successfully, Android’s documentation includes a best practice checklist of processes to follow. Refer to Launch checklist.
If your application crashes on a device, Google can use a symbols package to make a native stacktrace human-readable on the Android Vitals dashboard. It’s best practice to generate a public symbols package for your application and upload it to Google Play. For information on how to do this, refer to Generating a symbols package.
Similar to symbol files, Unity can produce a deobfuscation file if you apply minification to your application build. For more information on applying minification, refer to Android Player Settings. A deobfuscation file is automatically generated as a mapping file in the same location as your application build.
If you apply minification, it’s best practice to upload the deobfuscation file when publishing your application on Google Play. A deobfuscation file deciphers the method names in the stack trace, allowing you to identify and resolve the exact cause of the application crashes. For more information, refer to Google’s documentation on Deobfuscate or symbolicate crash stack traces
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Some 3rd party video providers do not allow video views without targeting cookies. If you are experiencing difficulty viewing a video, you will need to set your cookie preferences for targeting to yes if you wish to view videos from these providers. Unity does not control this.
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.