Search Unity

Bug Building Android in windows give me a "The filename or extension is too long. (0xCE)" error

Discussion in 'Editor & General Support' started by KrisGayClipwire, Nov 22, 2022.

  1. KrisGayClipwire

    KrisGayClipwire

    Joined:
    May 26, 2021
    Posts:
    41
    Unity hub is installed in the default location (C:/Program Files/Unity/Hub) but I am getting an error that I was not getting previously about the command build path being too long.


    Building Library\Bee\artifacts\Android\d8kzr\libil2cpp.so failed with output:
    clang++: error: unable to execute command: Couldn't execute program 'C:/Program Files/Unity/Hub/Editor/2021.3.10f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld.bfd.exe': The filename or extension is too long. (0xCE)
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
     
  2. KrisGayClipwire

    KrisGayClipwire

    Joined:
    May 26, 2021
    Posts:
    41
    For anyone finding this in the future, deleting the Library folder seems to have fixed the issue and I can build again.
     
    Kurt-Dekker likes this.