Skip to content

build报错 Could not find method compile()  #23

@baichen99

Description

@baichen99

报错信息如下,
我修改了nodule_modules/react-native-qq-lib/build.gradle中的compile为implementation 还是报错

[RUN_GRADLEW] FAILURE: Build failed with an exception.
[RUN_GRADLEW] * Where:
[RUN_GRADLEW] Build file '/private/var/folders/l0/c36wqsf56r95y670jr0hx65r0000gn/T/eas-build-local-nodejs/35bdf6eb-a8ee-4abe-bed0-abf857047c83/build/node_modules/react-native-qq-lib/android/build.gradle' line: 27
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] A problem occurred evaluating project ':react-native-qq-lib'.
[RUN_GRADLEW] >
[RUN_GRADLEW] Could not find method compile() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] > Get more help at https://help.gradle.org.
[RUN_GRADLEW] BUILD FAILED in 16s
[RUN_GRADLEW] 15 actionable tasks: 15 executed
[RUN_GRADLEW] Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Build failed
Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
npx exited with non-zero code: 1
    Error: build command failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions