Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Problem with OBB-file on some devices

Discussion in 'Android' started by CoolMaster, Mar 21, 2017.

  1. CoolMaster

    CoolMaster

    Joined:
    Dec 9, 2014
    Posts:
    2
    Hello everyone!
    Please help me with the next issue. My andoird version of application is larger than 100 MB and I split its binary into APK and OBB files to upload to Google Play.
    I'm using an Asset to handle a loading of OBB files:
    [http://u3d.as/content/unity-technologies/google-play-obb-downloader/2Qq]
    On majority of devices my build is running correctly.

    But there are some devices where the same build has wrong behaviour: a device downloads big volume of data (it looks like it downloads apk and obb) but it freezes right after launch (as there is no obb file and it doesn't know where to find it).

    Debug log:
    03-20 13:27:22.697 10621-10637/? E/Unity:
    Level 'Main' (1) couldn't be loaded because it has not been added to the build settings.
    To add a level to the build settings use the menu File->Build Settings...

    Unity version: 5.1.0f3

    It is noteworthy that the problem occurs on some devices with a Qualcomm and HiSilicon processors. On devices with an MTK or Intel processors such a problem was not observed.
    What I should do to fix this problem? Any ideas?

    Appreciate any help ) Thank you.
     
  2. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    Some devices sound bad. The error probably means the OBB file is missing. What are the device models?

    If you are using Google Play, then there's no need to use the plugin. When installing, the OBB gets automatically downloaded. The plugin was needed earlier with Google Play, or if you are hosting the OBBs somewhere else in the internets.

    Could you check if it works for you without the plugin?
     
  3. CoolMaster

    CoolMaster

    Joined:
    Dec 9, 2014
    Posts:
    2
    - What are the device models?

    Huawei Honor 7
    Xiaomi Redmi 3S
    Asus ZenFone 2

    - Could you check if it works for you without the plugin?

    Yes I check it. There is the same problem with plugin and without.

    Additional: I check OBB file and it is in the right directory, but Unity3D can't use it for some reason. If I delete it and plugin reload OBB it's work fine! Very strange.
     
  4. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    What is the "right directory"?
    Could you also check the permissions on this directory? (ls -lA in adb shell)