DefaultTaskContainer#NamedDomainObjectProvider.configure(Action) on task set cannot be executed in the current context

Viewed 1227

I am getting this error when I try to connect my app with firebase.enter image description here

enter image description here and here are Gradle scripts enter image description here

enter image description here

3 Answers

Google broke something in com.google.gms:google-services:4.3.9

Change it to com.google.gms:google-services:4.3.8 and I suspect it will work. I have the same issue, and no amount of fiddling around with gradle scripts has fixed it, only downgrading.

Use classpath 'com.google.gms:google-services:4.3.10' in build.gradle(project: app_name)

It will be fixed.

Related