Search Issue Tracker

Active

Votes

20

Found in

2020.1.0b14

2020.1.3f1

Issue ID

1272592

Regression

Yes

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

Mobile

-

Reproduction steps:
1. Download and open the user-submitted project "BuildStreamingAssets2020.zip"
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 com.android.build.gradle.internal.tasks.Workers$ActionFacade

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

Notes:
Does not reproduce on iOS

JIRA link: https://jira.unity3d.com/secure/RapidBoard.jspa?rapidView=3682&projectKey=MPT&view=detail&selectedIssue=MPT-635

Comments (15)

  1. C64ce0288e70fa1035829a4dcdba1ffd?d=mm

    HoneyButterAlmond

    Apr 15, 2021 00:51

    Thank you TIANZHIZHI.
    it works for me!!

  2. 821269e258771ac107a8a45057bd9ab7?d=mm

    tianzhizhi

    Apr 14, 2021 08:05

    This is a compatible bug between com.android.tools.build:gradle:3.6.0 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 'com.android.tools.build:gradle:3.6.0'"
    into
    "classpath 'com.android.tools.build:gradle:3.4.0'"

    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:
    https://github.com/yasio/yasio

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

  3. D00bbfb201e42061355c441e1d7ac241?d=mm

    Ceylan12

    Apr 13, 2021 12:55

    I have the same problem with Unity 2020.3.3f1.

  4. 1919db469da4d20a69d6b307047ab6fb?d=mm

    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

  5. 9081e44d67e9d96c92ef5b13fc8cb685?d=mm

    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

  6. 9081e44d67e9d96c92ef5b13fc8cb685?d=mm

    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.

  7. 9081e44d67e9d96c92ef5b13fc8cb685?d=mm

    Personuo

    Apr 01, 2021 11:36

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

  8. 441302058b7294ff1fb19d71f3e19342?d=mm

    a-chambriat

    Mar 26, 2021 13:21

    broken too in 2020.3.0f1 & 2020.3.1f1

  9. 441302058b7294ff1fb19d71f3e19342?d=mm

    a-chambriat

    Mar 26, 2021 11:37

    Hello, is there a workaround ?

  10. Bf197144edce7397f87924c555e6df51?d=mm

    com2us_bluefallsky

    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

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.