Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unity Android IL2CPP构建成功,但未生成Apk_Android_Unity3d - Fatal编程技术网

Unity Android IL2CPP构建成功,但未生成Apk

Unity Android IL2CPP构建成功,但未生成Apk,android,unity3d,Android,Unity3d,我正在尝试用Unity制作一个Android版本。我将脚本后端更改为IL2CPP,因为最近向Google Play提交应用程序时必须提供64位支持,在此之后,我检查了ARM64体系结构,但无法生成相同的apk 编辑: 我的生成设置 我的播放器设置 我得到以下错误: Failed running C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --ena

我正在尝试用Unity制作一个Android版本。我将脚本后端更改为IL2CPP,因为最近向Google Play提交应用程序时必须提供64位支持,在此之后,我检查了ARM64体系结构,但无法生成相同的apk

编辑: 我的生成设置

我的播放器设置

我得到以下错误:

Failed running C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="E:\YouTube\LiveStream\JaiHindISRO\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="E:\YouTube\LiveStream\JaiHindISRO\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="E:/Android/android-ndk-r16b/android-ndk-r16b" --map-file-parser="C:\Program Files\Unity\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --directory="E:\YouTube\LiveStream\JaiHindISRO\Temp\StagingArea\assets\bin\Data\Managed" --generatedcppdir="E:\YouTube\LiveStream\JaiHindISRO\Temp\StagingArea\Il2Cpp\il2cppOutput" 

stdout:
Building libil2cpp.so with AndroidToolChain
    Output directory: E:\YouTube\LiveStream\JaiHindISRO\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: E:\YouTube\LiveStream\JaiHindISRO\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
il2cpp.exe didn't catch exception: System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)
   --- End of inner exception stack trace ---
   at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action)
   at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
   at il2cpp.Program.DoRun(String[] args)
   at il2cpp.Program.Run(String[] args)
   at il2cpp.Program.Main(String[] args)
---> (Inner Exception #0) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

---> (Inner Exception #1) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

---> (Inner Exception #2) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

---> (Inner Exception #3) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

---> (Inner Exception #4) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

---> (Inner Exception #5) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

---> (Inner Exception #6) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

---> (Inner Exception #7) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

---> (Inner Exception #8) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

---> (Inner Exception #9) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

---> (Inner Exception #10) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

---> (Inner Exception #11) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

stderr:

Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)
   --- End of inner exception stack trace ---
   at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action)
   at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
   at il2cpp.Program.DoRun(String[] args)
   at il2cpp.Program.Run(String[] args)
   at il2cpp.Program.Main(String[] args)

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:370)
UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:351)
UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

运行C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe失败--转换为cpp--发出空检查--启用数组边界检查--dotnetprofile=“unityaot”--编译cpp--libil2cpp static--platform=“Android”-architecture=“ARMv7”--配置=“Release”--输出路径=“E:\YouTube\LiveStream\JaiHindISRO\Temp\stagingara\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so”--cachedirectory=“E:\YouTube\LiveStream\JaiHindISRO\assets\…\Library\il2cpp\u android\u armeabi-v7a/il2cpp\u cache”--其他包含目录=“C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include“--附加包含目录=“C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include”--工具链路径=“E:/Android/Android-ndk-r16b/Android-ndk-r16b”--映射文件解析器=“C:\Program Files\Unity\Editor\Data\Tools\MapFileParser\MapFileParser.exe”--目录=“E:\YouTube\LiveStream\jainindisro\Temp\stagingara\assets\bin\Data\Managed”--generatedcppdir=“E:\YouTube\LiveStream\jainindisro\Temp\stagingara\Il2Cpp\il2cppOutput”
标准:
使用AndroidToolChain构建libil2cpp.so
输出目录:E:\YouTube\LiveStream\JaiHindISRO\Temp\stagingara\assets\bin\Data\Native\armeabi-v7a
缓存目录:E:\YouTube\LiveStream\JaiHindISRO\Library\il2cpp\U android\U armeabi-v7a\il2cpp\U缓存
il2cpp.exe未捕获异常:System.AggregateException:发生一个或多个错误。-->System.ComponentModel.Win32Exception:系统找不到指定的文件
在System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo-startInfo)
在Unity.IL2CPP.Shell.Execute(ExecuteArgs ExecuteArgs,IExecuteController控制器)
位于Unity.IL2CPP.Building.cpprogrammbuilder.provideObject文件(IntermediateObject文件编译数据)
在Unity.IL2CPP.Building.ParallelFor.c_uuuuDisplayClass1_0`2.b_uuu0(对象o)上
---内部异常堆栈跟踪的结束---
在Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[]数据,Func`2操作)
位于Unity.IL2CPP.Building.cpprogrammbuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile,IBILDStatisticsCollector statisticsCollector)
在Unity.IL2CPP.Building.cppprogrammbuilder.Build(IBuildStatistics&statistics)上
在il2cpp.Program.DoRun(字符串[]args)
在il2cpp.Program.Run处(字符串[]args)
在il2cpp.Program.Main处(字符串[]args)
--->(内部异常#0)System.ComponentModel.Win32Exception(0x80004005):系统找不到指定的文件
在System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo-startInfo)
在Unity.IL2CPP.Shell.Execute(ExecuteArgs ExecuteArgs,IExecuteController控制器)
位于Unity.IL2CPP.Building.cpprogrammbuilder.provideObject文件(IntermediateObject文件编译数据)
在Unity.IL2CPP.Building.ParallelFor.c__DisplayClass1_0`2.b__0(对象o)(内部异常#1)System.ComponentModel.Win32Exception(0x80004005):系统找不到指定的文件
在System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo-startInfo)
在Unity.IL2CPP.Shell.Execute(ExecuteArgs ExecuteArgs,IExecuteController控制器)
位于Unity.IL2CPP.Building.cpprogrammbuilder.provideObject文件(IntermediateObject文件编译数据)
在Unity.IL2CPP.Building.ParallelFor.c__DisplayClass1_0`2.b__0(对象o)(内部异常#2)System.ComponentModel.Win32Exception(0x80004005):系统找不到指定的文件
在System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo-startInfo)
在Unity.IL2CPP.Shell.Execute(ExecuteArgs ExecuteArgs,IExecuteController控制器)
位于Unity.IL2CPP.Building.cpprogrammbuilder.provideObject文件(IntermediateObject文件编译数据)
在Unity.IL2CPP.Building.ParallelFor.c__DisplayClass1_0`2.b__0(对象o)(内部异常#3)System.ComponentModel.Win32Exception(0x80004005):系统找不到指定的文件
在System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo-startInfo)
在Unity.IL2CPP.Shell.Execute(ExecuteArgs ExecuteArgs,IExecuteController控制器)
位于Unity.IL2CPP.Building.cpprogrammbuilder.provideObject文件(IntermediateObject文件编译数据)
在Unity.IL2CPP.Building.ParallelFor.c__DisplayClass1_0`2.b__0(对象o)(内部异常#4)System.ComponentModel.Win32Exception(0x80004005):系统找不到指定的文件
在System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo-startInfo)
在Unity.IL2CPP.Shell.Execute(ExecuteArgs ExecuteArgs,IExecuteController控制器)
位于Unity.IL2CPP.Building.cpprogrammbuilder.provideObject文件(IntermediateObject文件编译数据)
在Unity.IL2CPP.Building.ParallelFor.c__DisplayClass1_0`2.b__0(对象o)(内部异常#5)System.ComponentModel.Win32Exception(0x80004005):系统找不到指定的文件
在System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo-startInfo)
在Unity.IL2CPP.Shell.Execute(ExecuteArgs ExecuteArgs,IExecuteController控制器)
位于Unity.IL2CPP.Building.cpprogrammbuilder.provideObject文件(IntermediateObject文件编译数据)
在Unity.IL2CPP.Building.ParallelFor.c__DisplayClass1_0`2.b__0(对象o)(内部异常#6)System.ComponentModel.Win32Exception(0x80004005):系统找不到指定的文件
在System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo-startInfo)
在Unity.IL2CPP.Shell.Execute(ExecuteArgs ExecuteArgs,IExecuteController控制器)
在Unity.IL2CPP.Building.cpprogrammbuilder.provideObject文件(Interm