flutter版本与位置和firebase_messaging冲突 [英] flutter version conflict with location and firebase_messaging
问题描述
我在Flutter应用程序location: ^1.4.1
和firebase_messaging: ^2.0.0
I am using two plugin with my flutter app location: ^1.4.1
and firebase_messaging: ^2.0.0
如果我只使用一个,则可以正常使用
If I use single one its works fine but together
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.
- 干净整洁
- 试图降级两个插件的版本
- 和Google搜索
以上都不适合我.
应用级构建:implementation 'com.google.firebase:firebase-core:16.0.1'
项目级别的构建:classpath 'com.google.gms:google-services:4.0.1'
app level build: implementation 'com.google.firebase:firebase-core:16.0.1'
project level build: classpath 'com.google.gms:google-services:4.0.1'
谢谢 :)
推荐答案
在您的项目中-转到Android> App> build.gradle
In your Project - Goto Android > App > build.gradle
apply插件之后:'com.google.gms.google-services'
在build.gradle的底部,可以添加以下内容来解决该问题.
Right after the apply plugin: 'com.google.gms.google-services'
at the bottom of your build.gradle the following can be added to work around the issue.
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
这篇关于flutter版本与位置和firebase_messaging冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!