我已经将项目从Eclipse导入到Android Studio,但是gradle构建总是因为上面的错误而失败。我不明白错误是什么。
这是我的gradle
apply plugin: 'com.android.library'
android {
compileSdkVersion 19
buildToolsVersion '19.1.0'
defaultConfig {
minSdkVersion 7
targetSdkVersion 19
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile project(':signaturePad')
compile 'com.google.android.gms:play-services:+'
compile 'com.android.support:appcompat-v7:23.4.0'
compile files('libs/NineOldAndroid-2.4.0.jar')
compile files('libs/picasso-2.3.3.jar')
}我已尝试更改我的buildtoolsversion,但它不起作用。对于每个构建工具版本,它都会给出相同的错误。我也尝试过Invalidate Chace and Restart,但仍然没有结果。我也尝试过卸载并重新安装buildtools,但仍然没有结果。
下面是经常出现的错误

发布于 2018-05-07 17:04:59
将以下行添加到gradle.properties
android.enableAapt2=falsehttps://stackoverflow.com/questions/50210504
复制相似问题