升级依赖包及cordova之后,执行cordova platform add android,
部分插件冲突,cordova 升级最新版,cordova-android降到6.3.0版本,
再次cordova platform add android,成功
执行 cordova build android
报错:
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
解决方法:
cordova plugin add cordova-android-support-release --fetch
再次执行cordova build android,成功!!!
原因:谷歌新版com.android.support:support-v4,新增了两个特性:fontVariationSettings和ttcIndex,一些插件使用最新的android支持库,
导致不必要的不兼容。
参考:点击打开链接