无法使用./gradlew assembleRelease 打包。0.58环境

来源:14-6 打包发布React Native项目【收获果实】

叶远祥

2019-01-31

Task :react-native-splash-screen:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:react-native-splash-screen:verifyReleaseResources’.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
/Users/jayson/Documents/projects/RNProjects/Github_RN/node_modules/react-native-splash-screen/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
/Users/jayson/Documents/projects/RNProjects/Github_RN/node_modules/react-native-splash-screen/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
/Users/jayson/Documents/projects/RNProjects/Github_RN/node_modules/react-native-splash-screen/android/build/intermediates/res/merged/release/values/values.xml:2726: error: resource android:attr/fontVariationSettings not found.
/Users/jayson/Documents/projects/RNProjects/Github_RN/node_modules/react-native-splash-screen/android/build/intermediates/res/merged/release/values/values.xml:2727: error: resource android:attr/ttcIndex not found.
error: failed linking references.

写回答

1回答

CrazyCodeBoy

2019-02-01

检查一下是不是react-native-splash-screen的配置问题,建议参考下react-native-splash-screen的使用demo:https://github.com/crazycodeboy/react-native-splash-screen/tree/master/examples


0
0

RN入门到进阶,打造高质量上线App

解锁React Native开发应用新姿势,React Native新版本热门技术

3144 学习 · 3241 问题

查看课程