Failed to resolve firebase-ui:0.4.0

前端 未结 3 1885
别跟我提以往
别跟我提以往 2021-01-21 18:28

Trying to update my firebaseui. But Why doesn\'t this work in my gradle file?

 compile \'com.firebaseui:firebase-ui:0.4.0\'

UPDATE

相关标签:
3条回答
  • 2021-01-21 18:52

    For some reason 0.4.0 is not avaible through bintray or mavencentral..

    0.3.1 works though, so try that for now. I will look into it later.

    'com.firebaseui:firebase-ui:0.3.1'
    
    0 讨论(0)
  • 2021-01-21 19:12

    Update:
    The bug has been fixed and the new build is already pushed. Here's the last official reply from the bug post.

    Ok I just pushed a fix for this. There will be some propagation delay. If you can try it in >= 1hr and let me know if it works that would be great. Just build your project with the gradle flag --refresh-dependencies to make sure it re-downloads deps and does not use the cached copy.


    FirebaseUI is moved to jCenter in 0.4.0, thus it can't be found in mavenCentral. If it's still giving error, try to add Database and Auth dependencies separately, like this

    compile 'com.firebaseui:firebase-ui-database:0.4.0'
    compile 'com.firebaseui:firebase-ui-auth:0.4.0'
    

    This has been marked as a bug already here. You can read the bug post to read more about this issue.
    Here's the official reply on the bug

    Ok I'm glad that solved your problem. For what it's worth, com.firebaseui:firebase-ui:0.4.0 is just an empty library that declares dependencies on those libraries for convenience.

    I will leave this issue open until I can figure out what's going on with my jCenter configuration, thanks for the report!

    0 讨论(0)
  • 2021-01-21 19:14
    1. maoke sure you are using Jcenter.
    2. if compile 'com.firebaseui:firebase-ui-database:0.4.0' and compile 'com.firebaseui:firebase-ui-auth:0.4.0' still not work for you, try to go to Settings-> Build,execution, Deployment -> and disable offline Work
    0 讨论(0)
提交回复
热议问题