一直用得好好的。今天编译cordova失败了。报错如下:

:processArmv7DebugManifest

:processArmv7DebugResourcesERROR: In FontFamilyFont, unable to find attribute android:fontVariationSettings

FAILED

ERROR: In FontFamilyFont, unable to find attribute android:ttcIndex

BUILD FAILED

Total time: 4.285 secs

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':processArmv7DebugResources'.

> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

(node:5040) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:

ERROR: In FontFamilyFont, unable to find attribute android:fontVariationSettings

ERROR: In FontFamilyFont, unable to find attribute android:ttcIndex

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':processArmv7DebugResources'.

> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

(node:5040) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

原因:gradle版本跟crosswalk产生冲突,需要降低gradle版本,或者安装兼容插件

解决办法:

cordova plugin add cordova-android-support-gradle-release --variable ANDROID_SUPPORT_VERSION=27.0.0

然后再编译cordova build android 就不会报错了。

作者:蜗牛_96f2
链接:https://www.jianshu.com/p/7a26b870d591
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

最新文章

  1. 【再探backbone04】单页应用的基石-路由处理
  2. 【原】iphone6来了,我该做点什么(兼容iphone6的方法)
  3. property animation ( NineOldAndroid )
  4. [转]java.sql.SQLException: 无效的列索引
  5. Java产生随机数
  6. julia下载QQ.jl
  7. 3月3日(4) Remove Duplicates from Sorted List
  8. Orcle数据库查询练习复习:一
  9. Java实现希尔排序(增量递减排序)
  10. 解决WIN7上 SQL2008r2 由于防火墙问题 客户端无法远程连接的问题
  11. 学php之翻译wordpress(1)
  12. HDU 3715 Go Deeper(2-sat)
  13. Linux下Modules的概念及使用详解[转贴]
  14. OpenGL红宝书例子2.2 uniform变量的使用
  15. 关于curl / curl_multi的一些实验
  16. Vue--路由
  17. Nginx proxy开启cache缓存
  18. git初使用总结感悟
  19. R语言基本操作函数(1)变量的基本操作
  20. iOS - UITextView放在自定义cell里面-自适应高度

热门文章

  1. 编写可移植C/C++程序的要点
  2. DES解码
  3. OpenCV---Numpy数组的使用以及创建图片
  4. Intellj IDEA使用技巧记录
  5. UVA 1650 Number String
  6. HTML 5 Web 存储:localStorage和sessionStorage
  7. 【BZOJ】2820: YY的GCD
  8. NYOJ 409 郁闷的C小加(三) (字符串处理)
  9. 深入理解Spring系列之六:bean初始化
  10. 【swupdate文档 三】SWUpdate: 嵌入式系统的软件升级