Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

sentry-android not available through jcenter #270

Closed
marandaneto opened this issue Feb 17, 2020 · 15 comments
Closed

sentry-android not available through jcenter #270

marandaneto opened this issue Feb 17, 2020 · 15 comments
Assignees
Labels
bug Something isn't working

Comments

@marandaneto
Copy link
Contributor

marandaneto commented Feb 17, 2020

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.

@marandaneto marandaneto added the bug Something isn't working label Feb 17, 2020
@marandaneto marandaneto self-assigned this Feb 17, 2020
@aiKrice
Copy link

aiKrice commented Feb 17, 2020

I confirm. Maybe the team remove it intentionally ?

@marandaneto
Copy link
Contributor Author

@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.

@aiKrice
Copy link

aiKrice commented Feb 17, 2020

Alright, i didn't get it but now its sound very clear. Thx for full explanation :)

@marandaneto
Copy link
Contributor Author

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.

@marandaneto
Copy link
Contributor Author

marandaneto commented Feb 17, 2020

code snippet (build.gradle) to add bintray repo:

    repositories {
        maven {
            url = "https://dl.bintray.com/getsentry/sentry-android"
        }
    }

@MoSofi
Copy link

MoSofi commented Feb 17, 2020

@marandaneto Thanks a lot for the great help. Keep the great work up!

@AdamGerthel
Copy link

@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.

@marandaneto
Copy link
Contributor Author

marandaneto commented Feb 17, 2020

@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.

@AdamGerthel
Copy link

@marandaneto thanks!

@marandaneto
Copy link
Contributor Author

just a small update, bintray/jcenter is investigating why the sync isn't happening, they will let us know asap.

@ovbm
Copy link

ovbm commented Feb 18, 2020

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

@marandaneto
Copy link
Contributor Author

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.

@ovbm
Copy link

ovbm commented Feb 18, 2020

Can't confirm that the issue is fixed.

@marandaneto
Copy link
Contributor Author

@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.

@ovbm
Copy link

ovbm commented Feb 18, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants