app:mergeDebugResources报错解决方法

AndroidStudio 导入eclipse项目出现 app:mergeDebugResources
解决方法:

Module:app 的 build.gradle 中加入

aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false

例如:

apply plugin: ‘com.android.application’

android {
compileSdkVersion 21
buildToolsVersion “23.0.2”

aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false

defaultConfig {
applicationId “xxxxxxxxxxxxxxxxxxxxxxxxxxx”
minSdkVersion 8
targetSdkVersion 21
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.txt’
}
}
}

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>