【问题标题】:flutter version conflict with location and firebase_messaging颤振版本与位置和 firebase_messaging 冲突
【发布时间】:2019-03-31 03:10:52
【问题描述】:

我在 Flutter 应用程序中使用了两个插件 location: ^1.4.1firebase_messaging: ^2.0.0

如果我使用单个它可以正常工作,但可以一起使用

What went wrong:
Failed to capture snapshot of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date check.
> The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
  1. 扑干净
  2. 正在尝试降级这两个插件的版本
  3. 和谷歌搜索

以上都不适合我。

应用级构建:implementation 'com.google.firebase:firebase-core:16.0.1' 项目级构建:classpath 'com.google.gms:google-services:4.0.1'

谢谢 :)

【问题讨论】:

    标签: firebase flutter firebase-cloud-messaging


    【解决方案1】:

    在您的项目中 - 转到 Android > App > build.gradle

    在你的 build.gradle 底部应用插件:'com.google.gms.google-services' 之后,可以添加以下内容来解决该问题。

    com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-08-12
      • 2020-06-06
      • 2021-10-02
      • 2021-05-01
      • 1970-01-01
      • 2021-07-25
      • 1970-01-01
      • 2020-11-02
      相关资源
      最近更新 更多