标签:apt div color merger and options HERE UNC cts
使用VS+Cordova进行APP开发,编译时突然出现以下异常:
解决方法:
找到 platform/android/build.gradle文件 找到android{}这个方法
加上下面两句代码:
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
如下:即可解决问题
ext.postBuildExtras = { android { aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } allprojects { compileOptions { sourceCompatibility = JavaVersion.VERSION_1_7 targetCompatibility = JavaVersion.VERSION_1_7 } } } }
成功编译:
标签:apt div color merger and options HERE UNC cts
原文地址:https://www.cnblogs.com/gougou1981/p/12868974.html