Development record of developer who study hard everyday.

, ,

The error about il2cpp when you build unity project in android studio

The error about il2cpp when you build unity project in android studio

android blog

1. "il2cpp.exe finished with non-zero exit value" error

Caused by: org.gradle.process.internal.ExecException: Process 'command '/Users/2beone/AndroidStudioProjects/Zepeto/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/il2cpp.exe'' finished with non-zero exit value 126
at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:414)
at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:38)
at org.gradle.process.internal.DefaultExecActionFactory.exec(DefaultExecActionFactory.java:205)
at org.gradle.groovy.scripts.DefaultScript.exec(DefaultScript.java:249)
at org.gradle.api.Script$exec$0.callCurrent(Unknown Source)


2. "il2cpp.exe permission denied" error

Execution failed for task ':unityLibrary:BuildIl2CppTask'.
> A problem occurred starting process 'command '/Users/[path to app]/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/net471/il2cpp.exe''


* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':unityLibrary:BuildIl2CppTask'.
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/Users/[path to app]/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/net471/il2cpp.exe''
Caused by: net.rubygrapefruit.platform.NativeException: Could not start '/Users/[path to app]/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/net471/il2cpp.exe'

Cause: error=13, Permission denied​


3. "il2cpp no such file or directory" error

Caused by: java.io.IOException: Cannot run program "/Users/2beone/AndroidStudioProjects/Zepeto/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/il2cpp" (in directory "/Users/2beone/AndroidStudioProjects/Zepeto/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


You are using mac to develop android app, and import android project using Unity from Window.

In this case, you can not build that android project.

Three errors above are derived from incompatibility between Windows and Mac about Unity.


Share:

댓글 없음:

댓글 쓰기