1

There is a bug in Firebase UI 9.0.0 that was corrected in a later commit. I am trying to include this later commit to my app project from Jitpack:

https://jitpack.io/#firebase/FirebaseUI-Android/version-9.1.0-dev-387e7c2e01-1

But when i try to sync Gradle, i get the error:

Failed to resolve: com.github.firebase:FirebaseUI-Android:version-9.1.0-dev-387e7c2e01-1

build.gradle (app)

implementation 'com.github.firebase:FirebaseUI-Android:version-9.1.0-dev-387e7c2e01-1'

settings.gradle (root)

pluginManagement {
repositories {
    gradlePluginPortal()
    google()
    mavenCentral()
    maven { url 'https://jitpack.io' }
}
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}

Why is this not working? Donny

0

2 Answers 2

1

File version-9.1.0-dev-387e7c2e01-1/build.log says, that it is tagged as 9.1.0-SNAPSHOT.

Publication: com.firebaseui:firebase-ui-auth:9.1.0-SNAPSHOT
Publication: com.firebaseui:firebase-ui-common:9.1.0-SNAPSHOT
Publication: com.firebaseui:firebase-ui-database:9.1.0-SNAPSHOT
Publication: com.firebaseui:firebase-ui-firestore:9.1.0-SNAPSHOT
Publication: com.firebaseui:firebase-ui:9.1.0-SNAPSHOT
Publication: com.firebaseui:firebase-ui-storage:9.1.0-SNAPSHOT

Which would be:

implementation("com.firebaseui:firebase-ui:9.1.0-SNAPSHOT")

Branch 9.1.0-dev builds with min = 23, when changing the Firebase BOM version:

const val bom = "com.google.firebase:firebase-bom:34.3.0"
Sign up to request clarification or add additional context in comments.

Comments

1

It looks like you're trying to specify both the name of a branch and a commit hash. I don't see that that is supported by jitpack. If you want to target a specific commit, just provide the commit hash alone without the branch (the commit hash is unique in the entire repository and will always get everything up until that point, no matter which branch it might be a part of).

According to the documentation, the version can be:

Version: Release tag, commit hash or master-SNAPSHOT

So, if you want the commit hash 387e7c2e01:

implementation 'com.github.firebase:FirebaseUI-Android:387e7c2e01'

3 Comments

What the OP has is copied straight from the linked-to Jitpack page. It's a bit surprising that they screwed up their own generated documentation.
The build fails due to missing google-services.json anyway, which a library shouldn't even require. This could be prevented witth: if (System.getenv("JITPACK") == null) { include(":app") } jitpack.io/com/github/firebase/FirebaseUI-Android/9.0.0/…
Thanks for pointing out that the build failed. I guess this is why the library is not available, it is not due to an error in the implementation command, but the library does not exist. What are the alternatives? I tried cloning the library and building it, but it opens a while array of errors regarding missing libraries.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.