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

Open
#61 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, java, react-native

Research direction

Start by inspecting node_modules/@uiw/react-native-alipay/android/build.gradle at line 23 and the surrounding Android build configuration, then reproduce the reported React Native Android build failure. Done means the project builds and runs without the missing Maven plugin or unspecified compileSdkVersion errors.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Java
Stars
239
Forks
56
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from uiwjs/react-native-alipay

All issues in uiwjs/react-native-alipay

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.