Cannot change dependencies of configuration ':

2019-03-23 00:12发布

Cannot change dependencies of configuration ':app:api' after it has been included in dependency resolution.

2条回答
手持菜刀,她持情操
2楼-- · 2019-03-23 01:07

I was also getting the same error. Thanks to @Dominik for linking to the duplicate issue.

For now the work around is to downgrade com.google.gms:google-services to version 3.2.1 while the Android team works on a fix.

查看更多
冷血范
3楼-- · 2019-03-23 01:13

For today you can use

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

Seems it works.

查看更多
登录 后发表回答