0
我刚刚升级过Android Studio 2.0版本,我得到以下错误消息与同步的摇篮工程“的HelloWorld”失败:异常而执行模型规则抛出:NdkComponentModelPlugin.Rules#createNativeBuildModel
同步与摇篮项目 '的HelloWorld' 失败:异常而执行模型规则抛出:NdkComponentModelPlugin.Rules#createNativeBuildModel
构建文件看起来像
apply plugin: "com.android.model.application"
model {
android {
compileSdkVersion = 15
buildToolsVersion = "23.0.2"
defaultConfig.with {
applicationId = "com.test.helloworld"
minSdkVersion.apiLevel = 15
targetSdkVersion.apiLevel = 15
}
}
android.sources {
main {
jniLibs {
source {
srcDirs "libs"
}
}
}
}
android.buildTypes {
release {
minifyEnabled = true
proguardFiles.add(file('proguard-rules.txt'))
}
debug {
minifyEnabled = false
ndk.with {
debuggable = true
}
}
}
}
dependencies {
compile files('libs/xxx.jar')
compile files('libs/xxx1.jar')
}