Hi when assembling release for react native android I get error at the end, and Im not quite sure what could be wrong. I have following version react-native-sentry: ^0.23.2
Execution failed for task ':app:Loading dependency graph, done.easeJsAndAssets
warning: the transform cache was reset.
bundle: start
bundle: finish
bundle: Writing bundle output to: C:\Users\jsklepek\projects\works4me\android\app\build\intermediates\assets\release\index.android.bundle
bundle: Writing sourcemap output to: C:\Users\jsklepek\projects\works4me\android\app\build\intermediates\assets\release\index.android.bundle.map
bundle: Done writing bundle output
bundle: Done writing sourcemap output
bundle: Copying 15 asset files
bundle: Done copying assets
‘node_modulessentry-cli-binarybinsentry-cli’ is not recognized as an internal or external command,
operable program or batch file.
:app:bundleReleaseJsAndAssets FAILED
What went wrong:
Execution failed for task ‘:app:bundleReleaseJsAndAssetsdebugSentryUpload’.
Process ‘command ‘cmd’’ finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.’ Process ‘command ‘cmd’’ finished with non-zero exit value 1
my windows path is C:\Users\jsklepek\projects\works4me\node_modules\sentry-cli-binary\bin
Could you let me know what should be configured in cli.executable property in case I do not want to install cli globally?
Yes it exists, with your path im getting this:
bundle: Done writing bundle output
bundle: Done writing sourcemap output
bundle: Copying 15 asset files
bundle: Done copying assets
‘node_modulessentry-cli-binarybinsentry-cli’ is not recognized as an internal or external command,
operable program or batch file.
:app:bundleReleaseJsAndAssets FAILED
FAILURE: Build failed with an exception.
I tried that too indeed and result is the same
bundle: Done copying assets
‘node_modules\sentry-cli-binary\bin\sentry-cli’ is not recognized as an internal or external command,
operable program or batch file.
:app:bundleReleaseJsAndAssets FAILED
FAILURE: Build failed with an exception.
OK, something went wrong with your installation, can you make sure you have .NET Framework 4.0 installed and install sentry-cli-binary again?
There should be a sentry-cli.exe file with 4MB in this folder.