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.

Can't build Android+Flavors+Hermes after update to latest React Native 0.70.6

See original GitHub issue

OS:

  • 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.
  1. also, I applied the next fix it didn’t help https://docs.sentry.io/platforms/react-native/troubleshooting/#react-native-069-and-higher ,
  2. 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:

Actual result:

error: No such file or directory (os error 2)

Expected result:

No errors

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
retyuicommented, Dec 1, 2022

thanks !

1reaction
retyuicommented, Nov 28, 2022

yes, demo repo: https://github.com/retyui/sentry-react-native-issues-2624

you need to update android/sentry.properties with your secrets

Read more comments on GitHub >

github_iconTop 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 >

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