Can't build Android+Flavors+Hermes after update to latest React Native 0.70.6
See original GitHub issueOS:
- Windows
- MacOS
- Linux
Platform:
- iOS
- Android
SDK:
-
@sentry/react-native
(>= 1.0.0) -
react-native-sentry
(<= 0.43.2)
SDK version: 4.8.0
react-native
version: 0.70.6
Are you using Expo?
- Yes
- No
Are you using sentry.io or on-premise?
- sentry.io (SaaS)
- on-premise
I have following issue:
Platform: Android Engine: Hermes Flavors: Yes
build failed 😦
> Task :app:bundleStagingJsAndAssets_SentryUpload_alpha_0 FAILED
DEBUG 2022-11-16 08:07:08.319638935 +00:00 sentry-cli version: 1.74.4, platform: "linux", architecture: "x86_64"
INFO 2022-11-16 08:07:08.321524124 +00:00 sentry-cli was invoked with the following command line: "/home/runner/work/therapydiaries-builds/therapydiaries-builds/node_modules/@sentry/cli/sentry-cli" "react-native" "gradle" "--bundle" "/home/runner/work/therapydiaries-builds/therapydiaries-builds/android/app/build/generated/assets/react/staging/index.android.bundle" "--sourcemap" "/home/runner/work/therapydiaries-builds/therapydiaries-builds/android/app/build/generated/sourcemaps/react/staging/index.android.bundle.map" "--release" "alpha" "--dist" "0"
INFO 2022-11-16 08:07:08.322540617 +00:00 Issuing a command for Organization: thera Project: mobile-thera
INFO 2022-11-16 08:07:08.322566417 +00:00 bundle path: /home/runner/work/therapydiaries-builds/therapydiaries-builds/android/app/build/generated/assets/react/staging/index.android.bundle
INFO 2022-11-16 08:07:08.322572617 +00:00 sourcemap path: /home/runner/work/therapydiaries-builds/therapydiaries-builds/android/app/build/generated/sourcemaps/react/staging/index.android.bundle.map
Processing react-native sourcemaps for Sentry upload.
error: No such file or directory (os error 2)
DEBUG 2022-11-16 08:07:08.351493939 +00:00 skipping update nagger because session is not attended
FAILURE: Build completed with 2 failures.
- also, I applied the next fix it didn’t help https://docs.sentry.io/platforms/react-native/troubleshooting/#react-native-069-and-higher ,
- next code also didn’t help
// Hotfix for sentry: https://github.com/getsentry/sentry-react-native/issues/2195#issuecomment-1268411258 hermesFlagsForVariant: { def v -> !v.name.toLowerCase().contains('release') ? ['-w'] : [] },
Steps to reproduce:
- npx react-native init MyApp
- cd MyApp
- yarn add @sentry/react-native
- link & run build
Actual result:
error: No such file or directory (os error 2)
Expected result:
No errors
Issue Analytics
- State:
- Created 10 months ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Android build failed after updating react native version to 0.70
I have tried to update our react native app from 0.67 to 0.70 with this guide: text and wasnt able to build android...
Read more >Upgrading to new versions - React Native
Upgrading your Expo project to a new version of React Native requires updating the react-native , react , and expo package versions in...
Read more >What's New in React Native 0.70 — How to Upgrade and Why ...
All of these changes give important improvements to the developer workflow, especially for building Android apps. Most importantly, it adds more ...
Read more >react-native - npm
A framework for building native apps using React. Latest version: 0.70.6, last published: a month ago. Start using react-native in your ...
Read more >React Native Upgrade Helper
React Native Upgrade Helper logo ... What's your current react-native version? 0.70.6. To which version would you like to upgrade? 0.71.0-rc.5.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thanks !
yes, demo repo: https://github.com/retyui/sentry-react-native-issues-2624
you need to update
android/sentry.properties
with your secrets