sentry-android not available through jcenter
marandaneto opened this issue ยท 15 comments
I've requested a merging on jcenter of our 2 repos, sentry-java
(io.sentry:sentry-android) current version 1.7.x and the new repo sentry-android
(also io.sentry:sentry-android) current 2.0.0.
as a workaround, please use bintray
till this process gets done.
https://dl.bintray.com/getsentry/sentry-android
eg
https://dl.bintray.com/getsentry/sentry-android/io/sentry/sentry-android/2.0.0/
if you still wanna use jcenter
, it's possible using the io.sentry:sentry-android-ndk
module, it'll have the same dependencies as sentry-android
or if you don't wanna support NDK, just io.sentry:sentry-android-core
.
thanks for understanding.
I confirm. Maybe the team remove it intentionally ?
@SaezChristopher it was intentional because it's part of the merging process made by jcenter, I've sent them an email to see how to fix it and/or how long it takes, last case, I'll deploy it again as soon as I get an answer.
this was done because when people were searching for io.sentry
on jcenter, they were finding 2 sentry-android
artifacts and the newest one (2.0.0) was at the 2nd page, and most people don't even go next page, we decided to merge it so one could see all versions in one package from 1.x to 2.0.0.
Alright, i didn't get it but now its sound very clear. Thx for full explanation :)
sure, stay tuned :)
here is the link of what is being done https://www.jfrog.com/confluence/display/BT/Managing+Uploading+Content+New+UI#ManagingUploadingContentNewUI-MergingPackages
thanks for understanding.
code snippet (build.gradle) to add bintray repo:
repositories {
maven {
url = "https://dl.bintray.com/getsentry/sentry-android"
}
}
@marandaneto Thanks a lot for the great help. Keep the great work up!
@marandaneto where exactly do I add the snippet? Sorry for the confusion, but I'm very unfamiliar with Android builds & gradle. I have two build.gradle files in my RN app, none of which seem suitable for that line..? Or at least I'm very unsure of where exactly to enter it.
@AdamGerthel it could be in both, but let's say the one in the root folder of the android app.
you will see something like:
allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://jitpack.io' }
// HERE:
maven { url = "https://dl.bintray.com/getsentry/sentry-android" }
}
}
look for the // HERE:
comment in the code snippet above, that should help.
@marandaneto thanks!
just a small update, bintray/jcenter is investigating why the sync isn't happening, they will let us know asap.
Workarounds didn't work in my case, still got:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets_SentryUpload'.
> Process 'command 'node_modules/@sentry/cli/bin/sentry-cli'' finished with non-zero exit value 1
hey people, the issue should be resolved and no workarounds are needed anymore, please try it again.
I can see the artifacts in https://jcenter.bintray.com/io/sentry/sentry-android/ already.
Please let us know if you find any issues, thanks for the patience.
Can't confirm that the issue is fixed.
@ovbm I think you are having a different issue, this one is related to sentry-android
being available on jcenter.
Kindly refer to https://github.com/getsentry/sentry-react-native/issues
It might be related to sentry-cli
, thanks.
ah ok, sorry for the confusion. This issue is mentioned in getsentry/sentry-react-native#767 as a workaround, so I thought they might be the same.