- Home /
Error when building IL2CPP 64 bit android
When I setup a build with the IL2CPP backend and ARM64 I am getting this error
Win32Exception: ApplicationName='E:/games/Evil_Villian_Games/unity/Raven's Path/WorkingAndriodNDK/android-ndk-r16b-windows-x86_64/android-ndk-r16b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe', CommandLine='@"Temp/StagingArea/strip/armeabi-v7a/UnityICallRegistration.rsp"', CurrentDirectory='', Native error= The system cannot find the file specified.
It works fine When I build to android with mono. Any help or clues would be hugely appreciated.
---Update--- I can build if I disable Engine Code Stripping, but this bloats the size of the app a fair amount. This is not ideal. Anyone have any idea how I force unity to include whatever it is stripping to cause this error?
Are you using any plugins? If so I suggest creating a Link file to exclude them from the ByteCodeStripping.
I haven't added any plugins, and I've created all my code within unity. Is there anyway to tell from the error what I need to link. It looks like its having an issue with UnityICallRegistration.rsp but I don't what or where that is let alone how to force it to include it.
Answer by ODINKONG · Jun 14, 2019 at 07:18 PM
OK I figured it out... Earlier I had an issue where my KeyStore was stored in a directory that had ' in the name. I slowly figured out that if your alias, password or anything related to your KeyStore including the directory its stored in has ' in it then it will not build.
It turns out the same thing is true with the Android NDK. You can not store your Android NDK in a directory with ' in any of the folder names. I hope this saves someone else 2 days...
My build is now building with engine code stripping enabled in 64bit successfully.
Your answer
Follow this Question
Related Questions
Unity LWRP/URP cause blurred screen on Android 64bit 0 Answers
"CommandInvokationFailure: Gradle build failed" when building to Android 1 Answer
How can I debug an Android game that crashes at launch (after Unity logo)? 1 Answer
Are there tutorials on how to get my project into android studio? 0 Answers
CommandInvokationFailure when building apk... Trying to use Google Play Services 0 Answers