How To Export Android 64-Bit In Unity

How To Export Android 64-Bit In Unity

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

  1. Open Player Settings: Go to Edit -> Project Settings -> Player.
  2. Switch Platform: Under Other Settings, ensure Android is selected as the target platform.
  3. Scripting Backend: Choose IL2CPP. This is necessary as Google Play Store requires 64-bit support with IL2CPP.
  4. Architecture Settings: Scroll down to Target Architectures and select ARM64 (64-bit) and ARMv7 (32-bit) under Target Architectures to ensure your app supports both architectures. This is important for devices that still use 32-bit processors.
  5. Minimum API Level: Set the Minimum API Level to at least Android 5.0 (API level 21).
  6. Other Settings: Ensure all other settings (like bundle identifier, version, etc.) are correctly configured according to your project requirements.

Step 3: Build Settings

  1. Open Build Settings: Go to File -> Build Settings.
  2. Add Scenes: Add all the scenes you want to include in your build to the Scenes in Build list.
  3. 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.
  4. Build: Click on Build or Build 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

  1. Create a Developer Account: If you haven’t already, create a developer account on the Google Play Console.
  2. Prepare Release: Navigate to your app’s entry in the Play Console, and prepare a new release.
  3. Upload Your Build: Upload your APK or AAB file to the Play Console.
  4. 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.

Visit www.UnitySourceCode.store

Leave a Reply

Shopping cart

0
image/svg+xml

No products in the cart.

Continue Shopping