How to stop gradle from looking for the Android NDK?

  1. 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

  2. Open your local.properties file which probably looks like below

     ndk.dir=~/Library/Android/sdk/ndk-bundle
     sdk.dir=~/Library/Android/sdk
    
  3. 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.