Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

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 at 8:49 PM.

  1. KrisGayClipwire

    KrisGayClipwire

    Joined:
    May 26, 2021
    Posts:
    11
    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:
    11
    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.
unityunity