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

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

Open
baichen99 opened this issue Aug 1, 2024 · 0 comments
Open

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

baichen99 opened this issue Aug 1, 2024 · 0 comments

Comments

@baichen99
Copy link

报错信息如下,
我修改了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.

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

1 participant