Task :app:bundleReleaseJsAndAssets_SentryUpload FAILED

See original GitHub issue

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

Output of node -v && npm -v && npm ls --prod --depth=0

v11.9.0
6.8.0
FixApp@0.0.1 /Users/aerik/Documents/DevelopmentProjects/FixApp
├── axios@0.18.0
├── prop-types@15.6.2
├── react@16.6.3
├── react-native@0.58.3
├── react-native-config@0.11.7
├── react-native-fbsdk@0.8.0
├── react-native-firebase@5.3.1
├── react-native-gesture-handler@1.0.15
├── react-native-image-crop-picker@0.24.0
├── react-native-image-zoom-viewer@2.2.25
├── react-native-keyboard-aware-scroll-view@0.8.0
├── react-native-material-textfield@0.12.0
├── react-native-modal@9.0.0
├── react-native-sentry@0.42.0
├── react-native-signature-capture@0.4.9
├── react-native-sound@0.10.12
├── react-native-splash-screen@3.2.0
├── react-native-status-bar-height@2.3.1
├── UNMET PEER DEPENDENCY react-native-svg@9.2.4
├── react-native-svg-uri@1.2.3
├── react-native-swiper@1.5.14
├── react-navigation@3.1.5
├── react-redux@6.0.0
├── redux@4.0.1
└── redux-thunk@2.3.0

Config:

Sentry.config('https://...@sentry.io/...', {
....
}).install()

I have following issue:

  • when running ./gradlew assembleRelease

Actual result:

Task :app:bundleReleaseJsAndAssets_SentryUpload FAILED
Task ':app:bundleReleaseJsAndAssets_SentryUpload' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
Starting process 'command 'node_modules/@sentry/cli/bin/sentry-cli''. Working directory: /Users/aerik/Documents/DevelopmentProjects/FixApp Command: node_modules/@sentry/cli/bin/sentry-cli react-native gradle --bundle /Users/aerik/Documents/DevelopmentProjects/FixApp/android/app/build/generated/assets/react/release/index.android.bundle --sourcemap /Users/aerik/Documents/DevelopmentProjects/FixApp/android/app/build/generated/assets/react/release/index.android.bundle.map --release com.fixapp-1.0 --dist 1
Successfully started process 'command 'node_modules/@sentry/cli/bin/sentry-cli''
Processing react-native sourcemaps for Sentry upload.
> Analyzing 2 sources
> Rewriting sources
> Adding source map references
error: project not found

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.
:app:bundleReleaseJsAndAssets_SentryUpload (Thread[Task worker for ':' Thread 2,5,main]) completed. Took 1.142 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets_SentryUpload'.
> Process 'command 'node_modules/@sentry/cli/bin/sentry-cli'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --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 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:41
  • Comments:23

github_iconTop GitHub Comments

86reactions
v-kencommented, Jun 19, 2019

This happened to me after changing the project name in the Sentry dashboard.

If you do this, you’d also have to change the name in the following files: ./android/sentry.properties and ./ios/sentry.properties

12reactions
esbenvbcommented, Sep 10, 2019

In my case, the problem occured when I wanted to make staging builds. I used to just run a react-native bundle command before the assembleStaging but sentry could not find the bundle. I fixed it by editing app/build.gradle

project.ext.react = [
        entryFile: "index.js",
        bundleInStaging: true,       // Add this
        bundleInInternalTest: true,  // Add this
        bundleInRelease: true
 
]

Read more comments on GitHub >

github_iconTop Results From Across the Web

Task :app:bundleReleaseJsAndAssets_SentryUpload FAILED ...
Task :app:bundleReleaseJsAndAssets FAILED ▸ Task ... FAILED Processing react-native sourcemaps for Sentry upload. error: No such file or ...
Read more >
Task :app:bundleReleaseJsAndAssets_SentryUpload FAILED
I solved this problem by following this steps: 1- Installing sentry-cli globally sudo npm install -g @sentry/cli --unsafe-perm.
Read more >
React native assembleRelease fails - SDKs - #sentry
Execution failed for task ':app:bundleReleaseJsAndAssetsdebugSentryUpload'. Process 'command 'cmd'' finished with non-zero exit value 1. Try:
Read more >
@sentry/react-native - npm
Official Sentry SDK for react-native. Latest version: 4.12.0, last published: 12 days ago. Start using @sentry/react-native in your project ...
Read more >
React native sentry release build failed - N Kaushik
* What went wrong: Execution failed for task ':app:bundleReleaseJsAndAssets_SentryUpload_1'. Even after cleaning the build, it was throwing the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found