Hey everyone,
I have recently exported Google Cardboard VR enabled Android project from Unity with scripting backend set to IL2CPP.
When building the Android project, I encountered the following exception, looks like it cannot locate the il2cpp executable at all. I have double checked that ndk and sdk were set correctly and under Il2CppOutputProject folder, it only has IL2CPP/ and Source/ folder.
Unity version: 2021.3.8f1
Android Studio version: Android Chipmunk
> Task :unityLibrary:BuildIl2CppTask FAILED
Execution failed for task ':unityLibrary:BuildIl2CppTask'.
> A problem occurred starting process 'command '/**/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/il2cpp''
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':unityLibrary:BuildIl2CppTask'.
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/**/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/il2cpp''
at org.gradle.process.internal.DefaultExecHandle.execExceptionFor(DefaultExecHandle.java:241)
at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:218)
at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:372)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:87)
at org.gradle.internal.operations.CurrentBuildOperationPreservingRunnable.run(CurrentBuildOperationPreservingRunnable.java:42)
... 3 more
Caused by: net.rubygrapefruit.platform.NativeException: Could not start '/**/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/il2cpp'
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:27)
at net.rubygrapefruit.platform.internal.WrapperProcessLauncher.start(WrapperProcessLauncher.java:36)
at org.gradle.process.internal.ExecHandleRunner.startProcess(ExecHandleRunner.java:98)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:71)
... 4 more
Caused by: java.io.IOException: Cannot run program "/**/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/il2cpp" (in directory "/**/unityLibrary"): error=2, No such file or directory
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
... 8 more
I got stuck on building the app, Any suggestions or experiences with this type of error?
Thanks!