uiwjs / react-native-alipay

基于 React Native 的宝支付包,已更新到最新的支付宝 SDK 版本,支持Android/iOS。
https://uiwjs.github.io/react-native-alipay/
MIT License
208 stars 49 forks source link

yarn add 安装依赖包后,编译报如下错误,导致工程无法运行 #61

Open yiyou1992 opened 2 years ago

yiyou1992 commented 2 years ago

1: Task failed with an exception.

2: Task failed with an exception.

BUILD FAILED in 14s

at makeError (D:\Project\xbov-dp-mobile\node_modules\execa\index.js:174:9)
at D:\Project\xbov-dp-mobile\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (D:\Project\xbov-dp-mobile\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (D:\Project\xbov-dp-mobile\node_modules\@react-native-community\cli\build\index.js:192:9)

info Run CLI with --verbose flag for more details. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

ghost commented 2 years ago

+1

jaywcjlove commented 2 years ago

https://github.com/uiwjs/react-native-alipay/pull/60

我觉得可能要回滚代码 @sunan112 @yiyou1992

ghost commented 2 years ago

可以给个方案吗,新建一个空项目就能复现这个问题

jaywcjlove commented 2 years ago

@sunan112 使用 v4.0.3 版本

jaywcjlove commented 2 years ago

使用 v5 安装 maven 使用,我觉得需要回滚。

jaywcjlove commented 2 years ago

https://opendocs.alipay.com/common/02km9l#15.8.11

官方已经不提供 SDK下载了,看样子还不能回滚。

image
jaywcjlove commented 2 years ago

Gradle 7 版本将 maven 插件移除了,用 maven publish 插件替代。你的 Gradle 7 版本太高,我发一个新版本,支持最新的。

jaywcjlove commented 2 years ago

@sunan112 升级 @uiw/react-native-alipay@5.0.1 试试看

ghost commented 2 years ago

好的,多谢大佬,我试一下