Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2019.4.X, 2020.3.X, 2021.1.X



Found in


Issue ID




[Android] Build fails when there are 680 or more files in the Streaming Assets folder



Reproduction steps:
1. Download and open the user-submitted project ""
2. Build the project

Expected result: Build is successful
Actual result: Build fails

Reproduces on: 2020.1.0b14, 2020.1.6f1

Does not reproduce on: 2019.4.11f1, 2020.1.0b13, 2020.2.0a1, 2020.2.0b3

Error message:
> A failure occurred while executing$ActionFacade

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Does not reproduce on iOS
This is a problem outside of Unity, reported to Android Studio:

A workaround would be to use custom Gradle files and specify the file extensions. By default we specify few extensions and list all the files from streaming assets. Instead of listing streaming assets you can specify the file extensions. The downside with that is that all files with such extension will be uncompressed including those outside of streaming assets.

  1. Resolution Note (fix version 2021.2):

    Fixed in 2022.1.0a10

  2. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0b13

  3. Resolution Note (fix version 2021.1):

    Fixed in 2021.1.9f1

  4. Resolution Note (fix version 2020.3):

    Fixed in 2020.3.13f1

  5. Resolution Note (fix version 2019.4):

    Fixed in: 2019.4.32f1

Comments (27)

  1. Martinez-Vargas

    May 12, 2021 17:40

    I have exactly the same problem in Unity 2020.3.7, I am using the firebase plugin downloaded from the unity package manager. Could anyone solve this?

  2. KrcKung

    May 08, 2021 11:17

    Thank you TIANZHIZHI for posting the solution. Really appreciate it.

  3. HoneyButterAlmond

    Apr 15, 2021 00:51

    Thank you TIANZHIZHI.
    it works for me!!

  4. tianzhizhi

    Apr 14, 2021 08:05

    This is a compatible bug between and unity 2020, Please do following step to resolve:

    1, Edit -> Player Setting -> Publishing Settings, click "Custom Base Gradle Template" blew the Build section.

    2, You will find a "Assets\Plugins\Android\baseProjectTemplate.gradle" file was generated, open it by text editor.

    3, change
    "classpath ''"
    "classpath ''"

    Build again, and don't forget to add it to your CVS.

    If you get solved and like this solution, please do me a favor to mark a star for this repo:

    This repo's author find this solution and he told me.

  5. Ceylan12

    Apr 13, 2021 12:55

    I have the same problem with Unity 2020.3.3f1.

  6. seobyeongky

    Apr 06, 2021 03:17

    I've got same problem (using Unity 2020.2.6f1)
    600+ files in StreamingAssets => build failed
    50 files in StreamingAssets => build succeeded

  7. Personuo

    Apr 01, 2021 12:24

    This error will make addressable not work on Android at all, and what's even more incredible is that this error will exist for six months

  8. Personuo

    Apr 01, 2021 12:06

    When I build addressable ,I get this problem,I can't package!
    When I clean all addressable, I can package success.

  9. Personuo

    Apr 01, 2021 11:36

    So the issue was officially dropped? My project is not working

  10. a-chambriat

    Mar 26, 2021 13:21

    broken too in 2020.3.0f1 & 2020.3.1f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.