Error:(24, 0) Could not find method ndk() for arguments [build_891qepz0rctnrwl3xcb2ddug5$_run_closure1$_closure5@29f50b4f] on object of type com.android.build.gradle.AppExtension.Open File
把 ndk 放在 defaultConfig 里面
defaultConfig {
.....
ndk {
}
.....
}