I was using the this method to get the NDK directory:
project.plugins.findPlugin('com.android.library').sdkHandler.getNdkFolder()
Ater updating com.android.tools.build:gradle to 2.3 the field sdkHandler seems to have been renamed on removed
Error:No such property: sdkHandler for class: com.android.build.gradle.LibraryPlugin
Is there an alternative way to get the NDK directory path in a library module?
This method will now return the NDK's full path:
project.android.ndkDirectory.absolutePath
For me the fix was to simply set the ANDROID_NDK environment variable.
More here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With