Hi… I’m new to Sentry and trying to integrate it with my React Native application… I followed all the steps exactly as mentioned on the sentry.io documentation but am facing an issue with the android version of my application. Build is successful and gives no error. Please help !!
-
For iOS - Debug symbols (artifacts) are uploaded successfully for Debug as well as Release versions and I’m able to see the exact error stacktrace on sentry dashboard.
-
For Android - Looks like the sourcemaps are not getting uploaded due to which I’m not able to get a readable meaningful error stacktrace for my issue (https://sentry.io/organizations/achalgachham/issues/1404863673/).
Versions
“react”: “16.12.0”,
“react-native”: “^0.61.5”,
“@ sentry/react-native”: “^1.2.1”
Logs
Info: used pre-configured source map files: /Users/saurabh/achalgachham/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map
Sentry-CLI arguments: [node_modules/@ sentry/cli/bin/sentry-cli, --log-level, debug, react-native, gradle, --bundle, /Users/saurabh/achalgachham/android/app/build/generated/assets/react/release/index.android.bundle, --sourcemap, /Users/saurabh/achalgachham/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map, --release, in.achalgachham-4.0.0, --dist, 4194311, --dist, 2097159, --dist, 1048583, --dist, 3145735]
Tasks to be executed: [task ‘:app:bundleReleaseJsAndAssets’]
:app:bundleReleaseJsAndAssets (Thread[Execution worker for ‘:’,5,main]) started.
> Task :app:bundleReleaseJsAndAssets
Task :app:bundleReleaseJsAndAssets in @ react-native-community_async-storage Starting
Caching disabled for task ‘:app:bundleReleaseJsAndAssets’ because:
Build cache is disabled
Task ‘:app:bundleReleaseJsAndAssets’ is not up-to-date because:
Input property ‘$1’ file /Users/saurabh/achalgachham/node_modules/@ react-native-community/async-storage/android/build/intermediates/intermediate-jars has been added.
Input property ‘$1’ file /Users/saurabh/achalgachham/node_modules/@ react-native-community/async-storage/android/build/intermediates/intermediate-jars/release has been added.
Input property ‘$1’ file /Users/saurabh/achalgachham/node_modules/@ react-native-community/async-storage/android/build/intermediates/intermediate-jars/release/jni has been added.
Starting process ‘command ‘npx’’. Working directory: /Users/saurabh/achalgachham Command: npx react-native bundle --platform android --dev false --reset-cache --entry-file index.js --bundle-output /Users/saurabh/achalgachham/android/app/build/generated/assets/react/release/index.android.bundle --assets-dest /Users/saurabh/achalgachham/android/app/build/generated/res/react/release --sourcemap-output /Users/saurabh/achalgachham/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map
Successfully started process ‘command ‘npx’’
warning: the transform cache was reset.
Loading dependency graph, done.
info Writing bundle output to:, /Users/saurabh/achalgachham/android/app/build/generated/assets/react/release/index.android.bundle
info Writing sourcemap output to:, /Users/saurabh/achalgachham/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 70 asset files
info Done copying assets
Task :app:bundleReleaseJsAndAssets in @ react-native-community_async-storage Finished
:app:bundleReleaseJsAndAssets (Thread[Execution worker for ‘:’,5,main]) completed. Took 28.839 secs.
BUILD SUCCESSFUL in 37s