Sentry-react-native: Android: failed to assembleRelease

Created on 29 Jun 2017  路  6Comments  路  Source: getsentry/sentry-react-native

@HazAT thanks a lot for the SDK!

Works great for me except for assembling a release apk for android. I saw similar issues that were closed with reference to 0.12.5 version of the SDK.

I am on

"react-native-sentry": "0.14.0",
"react-native": "0.44.0"

the following issue occurs:
screen shot 2017-06-29 at 4 56 11 pm

before posting the issue I tried linking, relinking, reinstalling, creating a fresh project etc. I cannot find the way to generate apk.

Could you please check it out?

Most helpful comment

I am not sure if it makes any difference, but can you change
defaults.url=https://sentry.io/org/garden
to
defaults.url=https://sentry.io/

All 6 comments

You get a 403 which seems that something with your sentry.properties file isn't right.
Please check that you use the correct authtoken and have the correct org and project in your file.

@HazAT thanks for the fast answer! I tried all possible options already. other guys seem to have the same problem:
https://github.com/getsentry/react-native-sentry/issues/63

does it work for you? can you actually assemble a release apk?

Yeah, it works here.
Do you have a sentry.properties file?

@HazAT yes!

/android/sentry.properties

defaults.url=https://sentry.io/org/garden
defaults.org=org
defaults.project=garden
auth.token=mytoken

I even tried exporting the SENTRY_DSN link before I would assemble release. Still no luck

I am not sure if it makes any difference, but can you change
defaults.url=https://sentry.io/org/garden
to
defaults.url=https://sentry.io/

@HazAT it worked!!! unbelievable! many thanks for the awesome work and support!

Was this page helpful?
0 / 5 - 0 ratings