A 出现如下错误,找了很多方法解决,但不知道要用什么版本,要做什么。
The library com.google.firebase:firebase-iid is being requested by various other libraries at [[16.2.0,16.2.0]], but resolves to 15.1.0.
最佳答案
移除
implementation 'com.google.firebase:firebase-messaging:17.0.0'
来自您的应用程序
如果有人遇到这样的错误
'com.android.support:appcompat-v7' has different version for the compile (26.1.0) and runtime (27.0.1) classpath
然后
在你的项目级gradle文件下
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "26.1.0"
}
}
}
}
将以上行添加到项目级gradle文件的底部
关于firebase - 添加 firebase 消息传递后 flutter gradle 出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51652218/