I have just updated my Android Studio setup to 1.3 (latest stable as of 31st of August 2015) and I need to use the latest NDK integration. My previous Android Studio version
For the first part.
BuildType, flavors... are outside the android block, but inside the model block.
apply plugin: 'com.android.model.application' // experimental model { android { defaultConfig.with { } } android.ndk { } android.buildTypes { release { } } android.productFlavors { } }