当前位置: 首页 > 知识库问答 >
问题:

在com中找到Firebase依赖项冲突。谷歌。firebase:firebase核心:.11.0.4,但需要版本11.0.4

谷彦君
2023-03-14

问题是我需要Firebase版本11.0.4,但我有11.0.4。。。

这是我的构建脚本

ext {
    supportLibraryVersion = '25.3.1'
    playServicesVersion = '11.0.4'
    firebaseVersion = '11.0.4'
}

dependencies {
compile project(":core")
compile fileTree(dir: 'libs', include: ['*.jar'])

// support libraries
compile "com.android.support:support-v4:$supportLibraryVersion"
compile "com.android.support:appcompat-v7:$supportLibraryVersion"
compile "com.android.support:cardview-v7:$supportLibraryVersion"
compile "com.android.support:recyclerview-v7:$supportLibraryVersion"

//play services
compile "com.google.android.gms:play-services-maps:$playServicesVersion"
compile "com.google.android.gms:play-services-location:$playServicesVersion"
compile "com.google.android.gms:play-services-auth:$playServicesVersion"
compile "com.google.android.gms:play-services-plus:$playServicesVersion"

compile "com.google.firebase:firebase-core:.$firebaseVersion"
compile "com.google.firebase:firebase-messaging:$firebaseVersion"

.....
}
apply plugin: 'com.google.gms.google-services'

找到com.google.firebase: Firebase-core:.11.0.4,但版本11.0.4是需要的google-service插件。花了0.001秒。

失败:生成失败,出现异常。

>

  • 出了什么问题:任务执行失败:应用程序:过程DebugGoogleServices。

    请通过更新google services插件的版本来修复版本冲突(有关最新版本的信息,请访问https://bintray.com/android/android-tools/com.google.gms.google-services/)或更新com的版本。谷歌。Androidgms至11.0.4。

    尝试:使用--stacktrace选项运行以获取堆栈跟踪。使用--debug选项运行以获得更多日志输出。

    我的google play服务版本是43,sugestions?

  • 共有1个答案

    翁心思
    2023-03-14
    compile "com.google.firebase:firebase-core:$firebaseVersion" 
    

    /*注意:.在上面一行中被删除*/

     类似资料:
    • 我在将Firebase项目从旧域升级到新的谷歌Firebase域时收到以下错误。 无法解析:com。谷歌。firebase:firebase核心:9.0.0 我遵循了Firebase留档中提到的步骤,在将Firebase添加到您的Android项目部分,主题为可用库。 我可以选择什么来解决这个错误?

    • 我正在遵循官方的Google身份验证流程。我的应用程序已经使用了最新版本的Google地图。 项目 应用程序 地图下方有一条红线,弹出窗口显示找到了11.8.0和11.4.2。构建错误消息如下:, 错误:任务“:应用程序:进程”的执行失败。 请通过更新谷歌服务插件的版本来修复版本冲突(有关最新版本的信息,请访问https://bintray.com/android/android-tools/co

    • 我在使用commons-codec库时遇到(NoSuchMethodError)问题,这里有我的POM:`http://maven.apache.org/xsd/maven-4.0.0.xsd“>4.0.0 我使用了exclusions和dependencyManagement,但结果是相同的 有人能告诉我更好的解决这个问题的方法吗?

    • 我正在做的项目需要同时使用Elasticsearch和一个依赖项(我没有设计也没有指定它的设计),该依赖项使用Lucene,这两个依赖项之间存在版本冲突。当我尝试启动项目时,下面的错误被吐出来 任何关于是否可以解决而不能够规定依赖或弹性搜索的设计的想法?

    • 问题内容: 我有一个独立使用两个依赖项的项目:BoneCP和Hibernate。但是由于SLF4J及其版本冲突,它无法正常工作,因为BoneCP需要SLF4J 1.5,而Hibernate需要SLF4j 1.6。如您所知,在pom.xml中不可能同时具有相同依赖项的两个不同版本。所以,我该怎么办才能解决这种惊人的SLF4J副作用??? 我得到的错误是臭名昭著的: 我需要添加它,但是不允许具有两个不

    • 我有一个具有以下依赖项的GWT项目 > Gin 2.1.2依赖于guice 3.0,而owlapi 4.0.2依赖于guice 4.0-beta。 gin在客户端使用,而owlapi在服务器端使用。 我有什么办法才能让这件事成功?我是否可以在保留正常运行的GWT devmode的同时使用依赖关系范围?