OS:
Platform:
SDK:
@sentry/react-native (>= 1.0.0)react-native-sentry (<= 0.43.2)SDK version: 1.8.2
react-native version: 0.63.2
Are you using Expo?
Are you using sentry.io or on-premise?
I have following issue:
When trying to bundle a custom buildType on android I get:
> Task :app:bundleAlphaJsAndAssets_SentryUpload_20 FAILED
Processing react-native sourcemaps for Sentry upload.
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:bundleAlphaJsAndAssets_SentryUpload_20'.
> Process 'command 'node_modules/@sentry/cli/bin/sentry-cli'' finished with non-zero exit value 1
I have tried adding the following:
project.ext.sentryCli = [
logLevel: "debug",
flavorAware: true
]
in app/build.gradle but now I get:
> Task :app:bundleAlphaJsAndAssets_SentryUpload_20 FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:bundleAlphaJsAndAssets_SentryUpload_20'.
> java.lang.NullPointerException (no error message)
Steps to reproduce:
buildTypes section of:alpha {
initWith release
matchingFallbacks = ["release", "debug"]
applicationIdSuffix ".alpha"
}
> cd android
> ./gradlew clean && ./gradlew assembleAlpha
Important note:
Doing the same for Release is working (./gradlew assembleRelease).
I found out that disabling Hermes would solve the issue.
Hi @MathieuUrstein,
I don't think this is a Sentry issue, I had a similar issue because of this line. Basically in the react-native gradle task, if your variant doesn't include release in the name, it won't output the sourcemaps.
3 solutions:
Thanks for clarifying this up. It's correct. I close the issue.
Most helpful comment
Hi @MathieuUrstein,
I don't think this is a Sentry issue, I had a similar issue because of this line. Basically in the react-native gradle task, if your variant doesn't include
releasein the name, it won't output the sourcemaps.3 solutions:
alpha