How To Export Android 64-Bit In Unity – Exporting an Android 64-bit build from Unity involves a few specific steps to ensure your application meets the requirements for distribution on the Google Play Store, especially after the 32-bit support was deprecated. Here’s a step-by-step guide:
Step 1: Update Unity and Android Build Support
Make sure you are using a Unity version that supports Android 64-bit. Unity 2018.4 LTS and later versions support this. Check the Unity release notes or download the latest LTS version if needed.
Step 2: Configure Player Settings
- Open Player Settings: Go to
Edit -> Project Settings -> Player
. - Switch Platform: Under
Other Settings
, ensureAndroid
is selected as the target platform. - Scripting Backend: Choose
IL2CPP
. This is necessary as Google Play Store requires 64-bit support with IL2CPP. - Architecture Settings: Scroll down to
Target Architectures
and selectARM64
(64-bit) andARMv7
(32-bit) underTarget Architectures
to ensure your app supports both architectures. This is important for devices that still use 32-bit processors. - Minimum API Level: Set the
Minimum API Level
to at leastAndroid 5.0 (API level 21)
. - Other Settings: Ensure all other settings (like bundle identifier, version, etc.) are correctly configured according to your project requirements.
Step 3: Build Settings
- Open Build Settings: Go to
File -> Build Settings
. - Add Scenes: Add all the scenes you want to include in your build to the
Scenes in Build
list. - Build System: Choose whether you want to export an APK or an Android App Bundle (AAB). AAB is recommended for smaller download sizes and easier management of multiple APKs for different device configurations.
- Build: Click on
Build
orBuild Bundle
, depending on your choice in the previous step, and choose a location to save your build files.
Step 4: Testing
After building your APK or AAB, it’s crucial to test it thoroughly on various Android devices to ensure compatibility and performance.
Step 5: Upload to Google Play Store
- Create a Developer Account: If you haven’t already, create a developer account on the Google Play Console.
- Prepare Release: Navigate to your app’s entry in the Play Console, and prepare a new release.
- Upload Your Build: Upload your APK or AAB file to the Play Console.
- Distribution: Follow the steps provided by the Play Console to distribute your app, including setting up pricing, availability, and targeting specific devices if needed.
Notes
- Obb File: If your app is larger than 150MB, you may need to use expansion files (OBB files). Unity can handle this automatically for you.
- External Plugins: Ensure any external plugins or libraries you are using are compatible with 64-bit architectures.
By following these steps, you make Unity 64-bit build publish your Android game.
You can also check Unity Forums.