3

I'm facing this issue when compiling APK in react-native,

This issue happens only when generating a release APK and the app works fine on debug mode.

It seems that the path to global node modules is wrong ( Not in Desktop ).

enter image description here

ABDELKHALEK ZELLAT
  • 238
  • 1
  • 3
  • 11

2 Answers2

0

I solved this problem by following this steps:

1- Installing sentry-cli globally

sudo npm install -g @sentry/cli --unsafe-perm

2- Login in sentry with the sentry cli installed by

sentry-cli login

3- Updating my android/sentry.properties with the new token generated

defaults.url=https://sentry.io/
defaults.org=my-organization
defaults.project=my-project
auth.token=new_token
Germano
  • 358
  • 1
  • 2
  • 13
-3

I have fixed this by synchronizing with Gradle files.

ABDELKHALEK ZELLAT
  • 238
  • 1
  • 3
  • 11
  • Can you put the steps of the solutions? Tried syncing the gradle. Still the issue is there. Tried several things. – codehesh Aug 18 '20 at 05:45
  • @SaheshAbeysinghe it's been a long time since I fixed that, did you try re-install the module and synchronizing with Gradle files? – ABDELKHALEK ZELLAT Aug 18 '20 at 16:11