android studio编绎时出现Error:Some file crunching failed, see logs for details
解决办法:
在build.gradle(Module:app)这一个文件中添加:
aaptOptions {
cruncherEnabled = false
useNewCruncher = false
}
如:
applyplugin:'com.android.application'
applyfrom:'tinker-support.gradle'
android {
compileSdkVersion23
buildToolsVersion"27.0.3"
aaptOptions {
cruncherEnabled =false
useNewCruncher =false
}
defaultConfig {
applicationId"com.swellvector.zainali"
minSdkVersion10
targetSdkVersion22
ndk {
//设置支持的SO库架构
abiFilters'armeabi' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
}
}
再编译一次,问题解决
网友评论