I set ndk.dir
in my local.properties
file. But, when grade
builds, this line
task buildNative(type: Exec, description: 'Compile JNI source via NDK') {
def ndkDir = android.ndkDirectory
throws an error saying that android.ndkDirectory
is not set. How can I prevent myself to hard code the absolute path of ndkDirectory
?