谷歌服务插件和数据绑定问题

时间:2018-05-19 06:03:14

标签: android data-binding google-play-services

我在我的项目中使用databinding。然后我想使用Firebase,因此我在项目中添加了google service plugin

classpath com.google.gms:google-services:3.3.1

之后...我的项目无法编译错误:

在依赖解析中包含配置dependencies之后,无法更改:app:api

如果我停用databinding ..或删除google service plugin,则此错误将消失。

我仍然想使用databinding ..帮助!!

2 个答案:

答案 0 :(得分:2)

只是意识到这是一个已知问题。现在没有解决方案。 现在需要禁用谷歌服务插件 https://issuetracker.google.com/issues/79122163

答案 1 :(得分:1)

更新至后,错误已消失

classpath 'com.google.gms:google-services:4.0.1'