Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2020.3.X, 2021.1.X

Fix In Review for 2019.4.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. Response avatar

    Resolution Note (fix version 2021.2):

    Fixed in 2022.1.0a10

  2. Response avatar

    Resolution Note (fix version 2021.1):

    Fixed in 2021.1.9f1

  3. Response avatar

    Resolution Note (fix version 2020.3):

    Fixed in 2020.3.13f1

Comments (22)

  1. 1919db469da4d20a69d6b307047ab6fb?d=mm


    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

  2. 9081e44d67e9d96c92ef5b13fc8cb685?d=mm


    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

  3. 9081e44d67e9d96c92ef5b13fc8cb685?d=mm


    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.

  4. 9081e44d67e9d96c92ef5b13fc8cb685?d=mm


    Apr 01, 2021 11:36

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

  5. 441302058b7294ff1fb19d71f3e19342?d=mm


    Mar 26, 2021 13:21

    broken too in 2020.3.0f1 & 2020.3.1f1

  6. 441302058b7294ff1fb19d71f3e19342?d=mm


    Mar 26, 2021 11:37

    Hello, is there a workaround ?

  7. Bf197144edce7397f87924c555e6df51?d=mm


    Mar 12, 2021 03:43

    Resolution Note not work

    my info log is here

    [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :launcher:processDebugResources
    [INFO] [org.gradle.api.Task] AAPT2 aapt2-3.6.0-6040484-osx Daemon #0: shutdown
    [ERROR] [org.gradle.api.Task] AAPT2 aapt2-3.6.0-6040484-osx Daemon #0 Failed to shutdown within timeout

  8. Efaefbfffda6008ac9dc1a85b044835e?d=mm


    Mar 04, 2021 15:50

    I think this workaround doesn't work.

    I couldn't remove " unityStreamingAssets.tokenize(', ')" from
    noCompress = ['.ress', '.resource', '.obb'] + unityStreamingAssets.tokenize(', ')

    And with unityStreamingAssets.tokenize(', '), the effect of adding file extensions like ".bundle" is invalidated.

    Did I miss something? This is serious problem. Come on, Unity!

  9. 51cc923c591ac31b808874d83007076e?d=mm


    Jan 22, 2021 05:10

    I have the same issue. Too many files in streaming assets and the build fails. If I delete most of them the build succeeds.


    I also can't access the /issues/177236664 link.
    No idea what's going on in there.

  10. 49a337c02f37c44472cab5d95a0c4918?d=mm


    Dec 12, 2020 11:37

    I tested on several versions of unity to find the one that is causing the problem and it is version 2020.1.0f1

    2020.1.17f1: Build failed
    2020.1.0f1: Build failed
    2019.4.16f1: Build success

    Here the change log:
    It is probably a regression from this patch

    I create a git repository to reproduce:

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.