Cannot change dependencies of configuration ':app:api' after it has been included in dependency resolution.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.
回答2:
For today you can use
classpath 'com.google.gms:google-services:4.0.2'
Seems it works.