【发布时间】:2016-01-06 12:23:20
【问题描述】:
我是安卓新手, 当我通过 gradle 文件构建时它显示错误 错误:任务“:app:mergeDebugResources”执行失败。 部分文件处理失败,详情请查看日志
:app:mergeDebugResources 失败
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.application.animalfacechanger"
minSdkVersion 15
targetSdkVersion 22
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:support-v4:22.0.0'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.facebook.android:facebook-android-sdk:4.7.0'
compile 'org.apache.httpcomponents:httpcore:4.4.1'
}
android { sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/res/assets'] } } }
android { sourceSets { main { res.srcDirs = ['src/main/res', 'src/main/res/color'] } } }
【问题讨论】:
-
设置
compileSdkVersion 23& 设置targetSdkVersion 23 -
或者只能设置
buildToolsVersion "22.0.2" -
仍然没有用 @IntelliJAmiya 我已经尝试过了。
-
谢谢我会检查..!!!
-
感谢您的帮助...!!终于解决了……!!!
标签: android android-studio gradle adt