Skip to content

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

@yiyou1992

Description

@yiyou1992

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions