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’
}
}
}
近期评论