zoukankan      html  css  js  c++  java
  • Task :rn-splash-screen:verifyReleaseResources FAILED

    Execution failed for task ':rn-splash-screen:verifyReleaseResources'.

    > java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
    /Users/zhouenxiao/Desktop/xiaoxiao/node_modules/rn-splash-screen/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:7: error: resource android:attr/colorError not found.
    /Users/zhouenxiao/Desktop/xiaoxiao/node_modules/rn-splash-screen/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:11: error: resource android:attr/colorError not found.
    /Users/zhouenxiao/Desktop/xiaoxiao/node_modules/rn-splash-screen/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
    /Users/zhouenxiao/Desktop/xiaoxiao/node_modules/rn-splash-screen/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
    /Users/zhouenxiao/Desktop/xiaoxiao/node_modules/rn-splash-screen/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
    /Users/zhouenxiao/Desktop/xiaoxiao/node_modules/rn-splash-screen/android/build/intermediates/res/merged/release/values/values.xml:2718: error: resource android:attr/fontStyle not found.
    /Users/zhouenxiao/Desktop/xiaoxiao/node_modules/rn-splash-screen/android/build/intermediates/res/merged/release/values/values.xml:2719: error: resource android:attr/font not found.
    /Users/zhouenxiao/Desktop/xiaoxiao/node_modules/rn-splash-screen/android/build/intermediates/res/merged/release/values/values.xml:2720: error: resource android:attr/fontWeight not found.
    /Users/zhouenxiao/Desktop/xiaoxiao/node_modules/rn-splash-screen/android/build/intermediates/res/merged/release/values/values.xml:2721: error: resource android:attr/fontVariationSettings not found.
    /Users/zhouenxiao/Desktop/xiaoxiao/node_modules/rn-splash-screen/android/build/intermediates/res/merged/release/values/values.xml:2722: error: resource android:attr/ttcIndex not found.
    error: failed linking references.

     

    解决方案:

    进入第三方模块中(node_modules/rn-splash-screen/android/build.gradle)

    将第三方模块中的sdk版本改成与项目中android/build.gradle中的sdk版本一致即可,其他第三方组件报这样的错误也适用

  • 相关阅读:
    Mac nginx 简单文件服务器
    cocos-lua
    Sublime Text 3 快捷键精华版
    VS中dumpbin工具的使用
    【2022新教程】Ubuntu server 20.04如何安装nvidia驱动和cuda-解决服务器ssh一段时间后连不上的问题
    linux如何将一个正在运行的进程转入到后台执行且中断shh连接不被kill掉
    Ubuntu如何修改默认python版本-sudo和不用sudopython不一致怎么办
    Ubuntu中virtual enviroment在sudo下无效怎么办?
    时间复杂度为O(1)的抽样算法——别名采样(alias sample method)
    Luke技术小站公告板
  • 原文地址:https://www.cnblogs.com/lude1994/p/11075723.html
Copyright © 2011-2022 走看看