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

🐛 Project with path ':react-native-nitro-modules' could not be found in project ':react-native-quick-crypto' #536

Open
3 of 4 tasks
xiebinbin opened this issue Dec 2, 2024 · 2 comments

Comments

@xiebinbin
Copy link

What's happening?

os: mac
react native :0.76.3
react-native-quick-crypto:1.0.0.5-beta

AILURE: Build failed with an exception.

  • Where:
    Build file '/Users/soda/projects/chat-manager/node_modules/react-native-quick-crypto/android/build.gradle' line: 108

  • What went wrong:
    A problem occurred evaluating project ':react-native-quick-crypto'.

Project with path ':react-native-nitro-modules' could not be found in project ':react-native-quick-crypto'.

  • 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.
Get more help at https://help.gradle.org.

BUILD FAILED in 6s
error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * Where:
Build file '/Users/soda/projects/chat-manager/node_modules/react-native-quick-crypto/android/build.gradle' line: 108 * What went wrong:
A problem occurred evaluating project ':react-native-quick-crypto'.

Project with path ':react-native-nitro-modules' could not be found in project ':react-native-quick-crypto'. * 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.
Get more help at https://help.gradle.org. BUILD FAILED in 6s.
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.

Reproducible Code

a empty project

Relevant log output

a empty project

Device

mac

QuickCrypto Version

1.0.0.5-beta

Can you reproduce this issue in the QuickCrypto Example app?

I didn't try (⚠️ your issue might get ignored & closed if you don't try this)

Additional information

@SemihGk
Copy link

SemihGk commented Dec 8, 2024

I encountered same issue. Resolved with putting following lines into settings.gradle file

include(':react-native-nitro-modules')
project(':react-native-nitro-modules').projectDir = file("${node_modules}/react-native-nitro-modules/android") // your node_modules path

Note: after sync I noticed NitroModules came error, but once you start building, that error disappears.

@boorad
Copy link
Collaborator

boorad commented Dec 9, 2024

is react-native-nitro-modules in your app's dependencies?

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

3 participants