flutter版本与位置和firebase_messaging冲突

时间:2018-10-26 11:04:17

标签: firebase flutter firebase-cloud-messaging

我在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. 和Google搜索

以上都不适合我。

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

谢谢 :)

1 个答案:

答案 0 :(得分:0)

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

apply插件之后:'com.google.gms.google-services',位于build.gradle底部,可以添加以下内容来解决此问题。

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