未能解决firebase-ui:0.4.0 [英] Failed to resolve firebase-ui:0.4.0

查看:119
本文介绍了未能解决firebase-ui:0.4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图更新我的firebaseui。但是为什么不在我的gradle文件中工作?

  compile'c​​om.firebaseui:firebase-ui:0.4.0' 

更新
同样的问题。



我的其他依赖项也被更新:

$ p code $ dependency {
compile fileTree dir:'libs',include:['* .jar'])
testCompile'junit:junit:4.12'

compile'c​​om.android.support:appcompat-v7:23.4。 0'
compile'c​​om.android.support:design:23.4.0'
compile'c​​om.android.support:support-v4:23.4.0'
compile'c​​om.android。 support:recyclerview-v7:23.4.0'
compile'c​​om.android.support:cardview-v7:23.4.0'

compile'c​​om.squareup.retrofit2:retrofit:2.0。 2'
compile'c​​om.squareup.retrofit2:converter-gson:2.0.1'
compile'c​​om.squareup.okhttp3:okhttp:3.2.0'


编译'com.google.android.gms:play-services:9.0.0'
compile'c​​om.google.maps:google-maps-services:0.1.12'
compile'c​​om.google.maps.android:android-maps-utils:0.4.3'

compile'c​​om.google.code.gson:gson:2.6.2'
compile'c​​om.google.android.gms:play-services-ads:9.0.0'
compile'c​​om。 google.android.gms:play-services-auth:9.0.0'
compile'c​​om.google.android.gms:play-services-gcm:9.0.0'
compile'c​​om.google。 android.gms:play-services-location:9.0.0'


compile'c​​om.firebase:firebase-simple-login:1.4.2'
compilecom。 google.firebase:firebase-database:9.0.0
compilecom.firebaseui:firebase-ui:0.4.0'


解决方案

更新:

错误已被修复,新版本已被推送。这是错误发布的最后一个官方答复。


好的,我只是为此做了一个修复。会有一些传播延迟。
如果你可以在> = 1小时试试,让我知道如果它的作品
会很好。使用gradle标记
--refresh-dependencies来构建项目,以确保它重新下载代码并不使用缓存的副本。





$ p $ FirebaseUI 被移动到 jCenter in 0.4.0 ,因此在 mavenCentral 中找不到。如果仍然出现错误,请尝试单独添加数据库和身份验证依赖项,如下所示:

  compile'c​​om.firebaseui:firebase-ui -database:0.4.0'
compile'c​​om.firebaseui:firebase-ui-auth:0.4.0'

这已被标记为已在此处的错误。您可以阅读错误帖子阅读更多关于这个问题。

这是错误的官方回复


好的我很高兴解决了你的问题。
com.firebaseui:firebase-ui:0.4.0只是一个空的库,为了方便,
声明了这些库的依赖关系。

我将这个问题保持开放状态,直到我可以通过jCenter配置找出
上发生了什么,感谢您的报告!


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

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

UPDATE Still same problem.

My other dependicies ar also updated:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'

    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.android.support:recyclerview-v7:23.4.0'
    compile 'com.android.support:cardview-v7:23.4.0'

    compile 'com.squareup.retrofit2:retrofit:2.0.2'
    compile 'com.squareup.retrofit2:converter-gson:2.0.1'
    compile 'com.squareup.okhttp3:okhttp:3.2.0'


    compile 'com.google.android.gms:play-services:9.0.0'
    compile 'com.google.maps:google-maps-services:0.1.12'
    compile 'com.google.maps.android:android-maps-utils:0.4.3'

    compile 'com.google.code.gson:gson:2.6.2'
    compile 'com.google.android.gms:play-services-ads:9.0.0'
    compile 'com.google.android.gms:play-services-auth:9.0.0'
    compile 'com.google.android.gms:play-services-gcm:9.0.0'
    compile 'com.google.android.gms:play-services-location:9.0.0'


    compile 'com.firebase:firebase-simple-login:1.4.2'
    compile "com.google.firebase:firebase-database:9.0.0"
    compile 'com.firebaseui:firebase-ui:0.4.0'

解决方案

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!

这篇关于未能解决firebase-ui:0.4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆