JavaScript ReactJS 报错Execution failed for JetifyTransform解决方法

本文要介绍构建ReactJS应用,报错:Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Failed to transform react-native-reanimated-65-jsc.aar (project :react-native-reanimated) to match attributes {artifactType=android-aar-metadata}.Execution failed for JetifyTransform的解决方法。

报错信息:

Could not resolve all files for configuration ':app:debugRuntimeClasspath'
Failed to transform react-native-reanimated-65-jsc.aar (project :react-native-reanimated) to match attributes {artifactType=android-aar-metadata}. > Execution failed for JetifyTransform:
 C:\Users\Rahul\Desktop\lcorn\rb\node_modules\react-native-reanimated\android\react-native-reanimated-65-jsc.aar. >
 Transform's input file does not exist: C:\Users\Rahul\Desktop\lcorn\rb\node_modules\react-native-reanimated\android\react-native-reanimated-65-jsc.aar. (See https://issuetracker.google.com/issues/158753935)

解决方法:

需要安装react-native-reanimated@2.3.0-alpha.3或更新版本解决问题。

相关文档https://docs.swmansion.com/react-native-reanimated/docs/installation/

推荐阅读
cjavapy编程之路首页