IL2CPP error

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:

stdout:

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


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.

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.