• cordova编译crosswalk-webview插件报错的处理办法


    一直用得好好的。今天编译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
    來源:简书
    简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
  • 相关阅读:
    Oracle设置某张表为只读
    greenplum不能下载问题解决方法(转)
    MyBatis学习-入门
    Oracle-数据泵使用
    oracle锁表
    linux查看文件大小
    Apache日志分割
    nginx日志切割
    zookeeper 事务日志查看
    zookeeper连接 org.apache.curator.framework.imps.CuratorFrameworkImpl Background exception was not retry-able or retry gave up [main-EventThread]
  • 原文地址:https://www.cnblogs.com/zzsdream/p/10182878.html
Copyright © 2020-2023  润新知