i am exploring react native, for my first app, i a...
# community-support
s
i am exploring react native, for my first app, i am having issues in build.gradle if anybody can help , thanks in advance. error message: $ npm run android Debugger attached. bolt-expo-starter@1.0.0 android expo run:android Debugger attached. Building app... Configuration on demand is an incubating feature. FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring project ':app'.
Failed to notify project evaluation listener.
The filename, directory name, or volume label syntax is incorrect
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/.
v
Did you do what the error suggest? If not, why not? If yes, why did you not provide the additional information? Especially the
--stacktrace
or optimally a build
--scan
URL.
s
Copy code
$ npm run android
Debugger attached.

> bolt-expo-starter@1.0.0 android
> expo run:android

Debugger attached.
› Building app...
Configuration on demand is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
   > The filename, directory name, or volume label syntax is incorrect

* 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 35s
13 actionable tasks: 3 executed, 10 up-to-date
Error: C:\Users\saada\Desktop\Flutter Notepad App\react-native\sb1-czstojez\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64,arm64-v8a exited with non-zero code: 1
Error: C:\Users\saada\Desktop\Flutter Notepad App\react-native\sb1-czstojez\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64,arm64-v8a exited with non-zero code: 1
    at ChildProcess.completionListener (C:\Users\saada\Desktop\Flutter Notepad App\react-native\sb1-czstojez\node_modules\@expo\spawn-async\src\spawnAsync.ts:67:13)
    at Object.onceWrapper (node:events:639:26)
    at ChildProcess.emit (node:events:524:28)
    at ChildProcess.cp.emit (C:\Users\saada\Desktop\Flutter Notepad App\react-native\sb1-czstojez\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:304:5)
    ...
    at spawnAsync (C:\Users\saada\Desktop\Flutter Notepad App\react-native\sb1-czstojez\node_modules\@expo\spawn-async\src\spawnAsync.ts:28:21)
    at spawnGradleAsync (C:\Users\saada\Desktop\Flutter Notepad App\react-native\sb1-czstojez\node_modules\@expo\cli\src\start\platforms\android\gradle.ts:134:28)
    at assembleAsync (C:\Users\saada\Desktop\Flutter Notepad App\react-native\sb1-czstojez\node_modules\@expo\cli\src\start\platforms\android\gradle.ts:83:16)
    at runAndroidAsync (C:\Users\saada\Desktop\Flutter Notepad App\react-native\sb1-czstojez\node_modules\@expo\cli\src\run\android\runAndroidAsync.ts:48:24)
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
v
You did nothing different besides using a code block, did you?
s
i don't know about gradle or android development , how android build apk's or bundles. if your need specific information or file, please tell me. i tried
--stacktree
and
--scan
but they said for android builds flag are different. i tried
--verbose
, result are command not found.
v
I have no idea about Android, you should probably ask in an Android community. Of course you cannot give those flags to Npm, they are Gradle flags. But no idea how to tunnel arguments through to the Gradle build, that you have to ask in a community about that tool.