sentry-react-native: [Android][ReleaseApk] Task :app:bundleReleaseJsAndAssets_SentryUpload FAILED

It’s work on iOS and Android Debug version but I can generate Release apk. I got this error:

I have these following error:

`

Configure project :app WARNING: The onesignal-gradle-plugin MUST be before com.android.application! Please put onesignal-gradle-plugin first OR update to com.android.tools.build:gradle:3.0.0 or newer! Task :app:bundleReleaseJsAndAssets_SentryUpload FAILED Processing react-native sourcemaps for Sentry upload. Analyzing 2 sources error: No such file or directory (os error 2) 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. . FAILURE: Build failed with an exception. . What went wrong: Execution failed for task ‘:app:bundleReleaseJsAndAssets_SentryUpload’. Process ‘command ‘/Users/yelkamel/Technique/EvoTest/node_modules/@sentry/cli/bin/sentry-cli’’ finished with non-zero exit value 1 `

I try different cli.executable path in sentry.properties but no succes

EDIT: actually on iOS I got this message: `

Found 1 debug information file Prepared debug information file for upload 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. `

react 16.8.6 react-native 0.60.3 sentry-cli 1.47.1 react-native-sentry “^0.43.2”,

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 9
  • Comments: 19 (3 by maintainers)

Most upvoted comments

ah now this is happening to me to

I’m having the same issue, could someone please tell us a solution?

I found a reason, but not sure how to solve it:

"react-native": "0.60.3",
"@sentry/react-native": "1.0.0-beta.7",

As I understood, sentry.gradle patches bundleReleaseJsAndAssets task and gets sourcemap output file path from “–sourcemap-output” param of that task. But in the end of react.gradle we have:

doLast {
    ant.move(
        file: jsPackagerSourceMapFile,
        tofile: jsOutputSourceMapFile
    );
}

Where:

def jsPackagerSourceMapFile = file("$jsSourceMapsDir/${bundleAssetName}.packager.map")
def jsOutputSourceMapFile = file("$jsBundleDir/${bundleAssetName}.map")

bundleReleaseJsAndAssets_SentryUpload task failse because it could not find the sourcemap output file.

The only way that I see at the moment - remove following line from your app/build.gradle:

apply from: "../../node_modules/@sentry/react-native/sentry.gradle"

And upload it manually aas described in https://docs.sentry.io/clients/react-native/sourcemaps/

I was with this bug and I don’t was remembering but I was changed the org on the Sentry and on my sentry.properties it was outdated and when I update it fixed the bug

@HazAT I’m experiencing this issue at the moment using 1.3.0? Should I manually upload the files till this is fixed?