Failed build Android il2cpp with permission denied error

Hello.

I created Unity Project that contained an empty scene and failed to build it with il2cpp backend.
The error message was as follows:

Mono build had no problem.
I tried to execute Unity as the admin user, but it did’nt make any difference.
Please help.

Can you attempt to write a file from a different application, like Notepad, to this directory? I wonder if there is some more general problem with the permissions on that directory.

Thank you for your first replay.

I could create a text file in that directory.
Finally, I succeeded in building an IL2CPP apk by replacing the Android NDK.

I’m glad you were able to solve the problem.

Same probleme here:

Unbehandelte Ausnahme: Unity.IL2CPP.Building.BuilderFailedException: error: unable to open output file 'C:\Repositories\CastleLife\CastleLife\05_ClientProject\Android\Packages\com.mobilemonsters.mmcl\Work\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\7885B40C220BFE0889EEFDC8F0D66F12.o': 'Permission denied'
1 error generated.

@Aberity What exactly do you mean by “replacing the Android NDK”? It seams like I need to use r10e.

Hello i am having the same issue can you please tell me what do you mean by replacing the NDK