question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

> Task :app:bundleReleaseJsAndAssets_SentryUpload ... FAILED

See original GitHub issue

Environment

How do you use Sentry? Sentry SaaS (sentry.io)

Which SDK and version? "@sentry/react-native": "3.4.3",

Steps to Reproduce

  1. Building android using Fastlane
  2. Sentry integration is set to default using sentry-wizard
  3. Previously was working using this task > Task :app:bundleReleaseJsAndAssets_SentryUpload_com.wander.com.app@1.1.2+2112328043_2112328043
  4. Nothing was changed in sentry integration but android using this task > Task :app:bundleReleaseJsAndAssets_SentryUpload_com.wander.com.app@1.1.2+-2095294253_-2095294253 FAILED
  5. Notice the differences between task name with - sign and without it

Expected Result

Build without failing 😃

Actual Result

I think somewhere the Android sentryUpload task is auto generating the id/number with a - sign. I double checked if we changed/updated something in the code base after the this task was failing and I confirm that there was no major update, only small UI updates.

wdyt @marandaneto

Screenshot 2022-06-22 at 16 31 34 Screenshot 2022-06-22 at 16 31 15

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
marandanetocommented, Jun 25, 2022

Its not released yet, Monday you test it again with 4.0.2

1reaction
marandanetocommented, Jun 22, 2022

@hetmann we use the versionCode or env. var. SENTRY_DIST in case you have defined it.

https://github.com/getsentry/sentry-react-native/blob/8830dab56e4e883273d15d3709d2b8cbaf50020a/sentry.gradle#L181-L182

https://github.com/getsentry/sentry-react-native/blob/8830dab56e4e883273d15d3709d2b8cbaf50020a/sentry.gradle#L67

This is usually generated by your App’s build script, e.g. https://github.com/facebook/react-native/blob/80f73671495c4330ddf7e1db85a42c629a557ee2/template/android/app/build.gradle#L250-L255

Can you check in your file if this could lead to negative numbers? We can likely abs the number but you can also likely fix it on your end, does that help?

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_iconTop Related StackOverflow Question

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