Skip to content

Project with path ':react-native-nitro-modules' #777

Description

@sawa-ko

Description

I am trying to make a Scaffold to React Native library in my existing project, but when I try to use, in this case, the example files generated by react-native-builder-bob I get the following error.

PS C:\Users\inmor\WebstormProjects\sercargo-warehouse> pnpm android

> sercargo-warehouse@1.0.0 android C:\Users\inmor\WebstormProjects\sercargo-warehouse
> expo run:android

env: load .env
env: export EXPO_PUBLIC_API_URL
› Building app...
Configuration on demand is an incubating feature.

> Configure project :app
 Ôä╣´©Å  Applying gradle plugin 'expo-dev-launcher-gradle-plugin' (expo-dev-launcher@5.0.29)

> Configure project :scl_react-native-scanner-manager
[NitroModules] ­ƒöÑ scl_reactnativescannermanager is boosted by nitro!

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\inmor\WebstormProjects\sercargo-warehouse\node_modules\@scl\react-native-scanner-manager\android\build.gradle' line: 153

* What went wrong:
A problem occurred evaluating project ':scl_react-native-scanner-manager'.
> Project with path ':react-native-nitro-modules' could not be found in project ':scl_react-native-scanner-manager'.

* 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 5s
18 actionable tasks: 4 executed, 14 up-to-date
Error: C:\Users\inmor\WebstormProjects\sercargo-warehouse\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a,armeabi-v7a exited with non-zero code: 1                                                                                                                                                                                                       
Error: C:\Users\inmor\WebstormProjects\sercargo-warehouse\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a,armeabi-v7a exited with non-zero code: 1
    at ChildProcess.completionListener (C:\Users\inmor\WebstormProjects\sercargo-warehouse\node_modules\@expo\spawn-async\src\spawnAsync.ts:67:13)
    at Object.onceWrapper (node:events:622:26)
    at ChildProcess.emit (node:events:507:28)
    at ChildProcess.cp.emit (C:\Users\inmor\WebstormProjects\sercargo-warehouse\node_modules\cross-spawn\lib\enoent.js:34:29)
    at maybeClose (node:internal/child_process:1101:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5)
    ...
    at spawnAsync (C:\Users\inmor\WebstormProjects\sercargo-warehouse\node_modules\@expo\spawn-async\src\spawnAsync.ts:28:21)
    at spawnGradleAsync (C:\Users\inmor\WebstormProjects\sercargo-warehouse\node_modules\@expo\cli\src\start\platforms\android\gradle.ts:134:28)
    at assembleAsync (C:\Users\inmor\WebstormProjects\sercargo-warehouse\node_modules\@expo\cli\src\start\platforms\android\gradle.ts:83:16)
    at runAndroidAsync (C:\Users\inmor\WebstormProjects\sercargo-warehouse\node_modules\@expo\cli\src\run\android\runAndroidAsync.ts:48:24)
 ELIFECYCLE  Command failed with exit code 1.

I don't know what else to do, I can't get it to work.

Image

Packages

  • create-react-native-library
  • react-native-builder-bob

Selected options

Image

Link to repro

N/A

Environment

PS C:\Users\inmor\WebstormProjects\sercargo-warehouse> pnpm react-native info
info Fetching system and libraries information...
System:
  OS: Windows 11 10.0.26100
  CPU: "(16) x64 AMD Ryzen 7 3700X 8-Core Processor             "
  Memory: 3.39 GB / 15.93 GB
Binaries:
  Node:
    version: 23.8.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn: Not Found
  npm:
    version: 10.9.2
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.12.35527.113 (Visual Studio Community 2022)
Languages:
  Java: 21.0.5
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.3
    wanted: ^15.1.3
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.7
    wanted: 0.76.7
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions