i am following this tutorial online
and when I tried to build I keep gettingt his:
Error:(15, 0) Gradle DSL method not found: 'ndk()' Possible causes:
I have tried this thread:
Android Studio Gradle DSL method not found: 'android()' -- Error(17,0)
but it is pretty old now.
here's my build.gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.guitarv.www.ndktest"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
ndk {
moduleName = "HelloJNI"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
Android Studio 1.4.1 android-ndk-r10e
Anyone knows what is going on?
thx!