我在Flutter应用location: ^1.4.1
和firebase_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.
以上都不适合我。
应用级构建:implementation 'com.google.firebase:firebase-core:16.0.1'
项目级别的构建:classpath 'com.google.gms:google-services:4.0.1'
谢谢 :)
答案 0 :(得分:0)
在您的项目中-转到Android> App> build.gradle
apply插件之后:'com.google.gms.google-services'
,位于build.gradle底部,可以添加以下内容来解决此问题。
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true