Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

IL2CPP error

Discussion in 'Editor & General Support' started by lmbarns, Jul 2, 2019.

  1. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628
    I'm trying to get an android IL2CPP build, it works with Mono but not IL2CPP. I followed a couple posts saying HUB had a bug installing the android sdk, I went through the steps to add it manually (can't find the forum thread now, but it was someone from Unity explaining how to manually update it). But I'm still getting this error:

    Code (CSharp):
    1. stdout:
    2.  
    3. il2cpp.exe didn't catch exception: System.Exception: Android NDK r13b or newer not detected at 'C:\Program Files\Unity\Hub\Editor\2019.1.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK'.
    I've installed android-sdk-r13b here C:\Program Files\Unity\Hub\Editor\2019.1.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
    ndk.jpg
    Anything else I'm supposed to do? I'm using 2019.1.8f1, Android platform for Oculus Go.

    I deleted the il2cpp cache folder in Library.
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,722
    Does that directory actually contains NDK r13b?
    One think you can do is open Android Studio, install relevant NDK using it and then point Unity to that installation.