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. Dismiss Notice

Question Internal build system error. BuildProgram exited with code -2147024809

Discussion in 'Android' started by domdev, Apr 25, 2022.

  1. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    375
    HELP! unity unity 2021.3.1f1
    System.ArgumentException: You're trying to copy to D:/Work 2016/All in One/Cowboy All in One - Free/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/unity-classes.jar more than once. Previously from Assets/Plugins/Android/unity-classes.jar and now from C:/Program Files/Unity/Hub/Editor/2021.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Variations/il2cpp/Release/Classes/classes.jar
    at Bee.Core.CopyTool.Setup(NPath target, NPath from)
    at PlayerBuildProgramLibrary.FilesHelper.SetupCopyFile(NPath destinationFile, NPath sourceFile)
    at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupJarFiles()+MoveNext()
    at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupGradleProject()+MoveNext()
    at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
    at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
    at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupPlayerBuild()
    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.RunBuildProgram()
    at PlayerBuildProgramTypeWrapper.Run(String[] args)
    at Program.Main(String[] args)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
     
  2. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,828
    Disable this in inspector or delete it completely as unity classes are not required to add as engine adds it by default.
     
  3. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    375
    will try thanks, it spend me an hours now dealing with this error
     
  4. rahatherock

    rahatherock

    Joined:
    Sep 29, 2023
    Posts:
    1
    Unity: 2022.3.10f1
    Hey, I'm having similar issue here:

    Build completed with a result of 'Failed' in 3 seconds (3482 ms)
    Internal build system error. BuildProgram exited with code 1.
    System.ArgumentException: You're trying to copy to C:/Users/Automation1/Desktop/xbox build_executable/lib_burst_generated.dll more than once. Previously from Library/Bee/artifacts/UWPPlayerBuildProgram/AsyncPluginsFromLinker/ARM/lib_burst_generated.dll and now from Library/Bee/artifacts/UWPPlayerBuildProgram/AsyncPluginsFromLinker/ARM64/lib_burst_generated.dll
    at Bee.Core.CopyTool.Setup(NPath target, NPath from)
    at UWPPlayerBuildProgram.UWPPlayerBuildProgram.SetupCopyPlugin(NPath pluginPath, NPath pluginDest, Plugin plugin)+MoveNext()
    at UWPPlayerBuildProgram.UWPPlayerBuildProgram.SetupCopyPlugin(NPath pluginPath, NPath pluginDest, Plugin plugin)+MoveNext()
    at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
    at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupGenerateNativePluginsForAssembliesArgs(IEnumerable`1 assemblies)
    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupUnityLinker()
    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.<SetupPlayerBuild>b__94_0()
    at Bee.Core.TinyProfiler2Base.Section[T](String label, Func`1 func, Dictionary`2 metadata)
    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupPlayerBuild()
    at UWPPlayerBuildProgram.UWPPlayerBuildProgram.SetupPlayerBuild()
    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.RunBuildProgram()
    at PlayerBuildProgramTypeWrapper.Run(String[] args)
    at Program.Main(String[] args)
    UnityEngine.GUIUtility:.ProcessEvent (int,intptr,bool&)