之前clone的一个项目就出现这个问题了,是NDK的问题,今天clone项目又遇到了。
PS:就是你clone的项目AS版本太低。
例如
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
你需要改为3.2.0以上。
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}