How to stop gradle from looking for the Android NDK?
-
Try to download the NDK (from: https://developer.android.com/ndk/downloads/) separately and unzip it to your prefered location, e.g.
~/Library/Android/ndk/android-ndk-r18b
-
Open your
local.properties
file which probably looks like belowndk.dir=~/Library/Android/sdk/ndk-bundle sdk.dir=~/Library/Android/sdk
-
Change the
ndk.dir
to~/Library/Android/ndk/android-ndk-r18b
Or you can try the solution from here: https://github.com/google/filament/issues/15#issuecomment-415423557
Uninstall the NDK or update your gradle plugin version. There was a bug in older versions of the plugin where it would perform an invalid sanity check on the NDK even for a Java only project. IIRC 3.2 is the fixed version.