Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 208
Rakesh Sharma Avatar asked May 03 '18 15:05

Rakesh Sharma


2 Answers

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.

like image 142
n002213f Avatar answered Nov 15 '22 01:11

n002213f


For today you can use

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

Seems it works.

like image 22
Aleksandar Mironov Avatar answered Nov 15 '22 03:11

Aleksandar Mironov