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版本一致即可,其他第三方组件报这样的错误也适用

  • 相关阅读:
    穿透层的鼠标事件
    深入浅出HTML与XHTML的区别
    JQuery中一个简单的表单验证的实例
    JavaScript window.setTimeout() 的详细用法
    js动态创建及移除div的方法
    js插入节点appendChild和insertBefore
    sublime使用方法
    js移动客户端--触屏滑动事件
    jquery 延迟执行实例介绍
    JS页面延迟执行一些方法(整理)
  • 原文地址:https://www.cnblogs.com/lude1994/p/11075723.html
Copyright © 2011-2022 走看看