Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

APK > 2GB fails to launch

Discussion in 'Android' started by OndraPaska, Mar 1, 2020.

  1. OndraPaska

    OndraPaska

    Joined:
    Jul 5, 2014
    Posts:
    12
    Hi, my game got over 2gb in size and now it does not launch when it is installed on the device.
    the error in logcat is:
    Zip read 65557 from offset 1331829 failed

    When I remove assets from the project it runs fine.
    Is there any way around this limit?
    using unity v2019.2.18
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,637
    Enable split binary in player settings. That will produce apk and obb files.
    You have to use this option, because you won't be able to upload your game to Google Play due to size limit.
     
  3. OndraPaska

    OndraPaska

    Joined:
    Jul 5, 2014
    Posts:
    12
    Thanks for the reply. I tried that but it failed with "OBB file is too large for Google Play (max 2GB)."
    From reading about it, it seems I need to make a custom way to support multiple OBBs as Unity can only make one?