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

When the number of files in the StreamingAsset is greater than 45800, the apk crash when it starts.

Discussion in 'Package Manager' started by hellengoodd, Oct 8, 2018.

  1. hellengoodd

    hellengoodd

    Joined:
    May 31, 2017
    Posts:
    51
    When the number of files in StreamingAssets is greater than 45800, the apk package that is build out will crash when it starts.

    I put 45782 files in StreamingAssets, then build the apk, then run apk by mobile phone or simulator, it can start normally, then I add 18 files of any size <1KB into it, then build the apk, it crash as soon as it starts.

    Is there a limit on the number of files in Unity's StreamingAssets?

    But the unity of mac has no such problem.

    The unity version is 2017.1.2p2

    Who knows why?

    Thank you all!
     
  2. okcompute_unity

    okcompute_unity

    Joined:
    Jan 16, 2017
    Posts:
    756
    hellengoodd likes this.
  3. hellengoodd

    hellengoodd

    Joined:
    May 31, 2017
    Posts:
    51