我已经将项目从 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
并再次重新安装,但仍然没有结果。
最佳答案
将以下行添加到 gradle.properties
android.enableAapt2=false
关于java - '/media/disk/sdk/build-tools/19.1.0/aapt'' 以非零退出值 1 完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50210504/