Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yiyou1992 opened this issue Jul 26, 2022 · 9 comments

Comments

@yiyou1992
Copy link

1: Task failed with an exception.

  • Where:
    Build file 'D:\Project\xbov-dp-mobile\node_modules@uiw\react-native-alipay\android\build.gradle' line: 23

  • What went wrong:
    A problem occurred evaluating project ':uiw_react-native-alipay'.

Plugin with id 'maven' not found.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':uiw_react-native-alipay'.

compileSdkVersion is not specified. Please add it to build.gradle

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

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
Copy link

ghost commented Aug 5, 2022

+1

@jaywcjlove
Copy link
Member

jaywcjlove commented Aug 5, 2022

#60

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

@ghost
Copy link

ghost commented Aug 5, 2022

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

@jaywcjlove
Copy link
Member

@sunan112 使用 v4.0.3 版本

@jaywcjlove
Copy link
Member

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

@jaywcjlove
Copy link
Member

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

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

image

@jaywcjlove
Copy link
Member

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

jaywcjlove added a commit that referenced this issue Aug 5, 2022
jaywcjlove added a commit that referenced this issue Aug 5, 2022
@jaywcjlove
Copy link
Member

@sunan112 升级 @uiw/[email protected] 试试看

@ghost
Copy link

ghost commented Aug 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants