sailaminoak
sailaminoak

Reputation: 325

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

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

Upvotes: 8

Views: 2912

Answers (3)

Mohit Kumar
Mohit Kumar

Reputation: 109

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

It will be fixed.

Upvotes: 0

rlazo
rlazo

Reputation: 635

A new version 4.3.10 was released with a fix. Give it a try

https://firebase.google.com/support/release-notes/android#google-services_plugin_v4-3-10

Upvotes: 2

Mike Macpherson
Mike Macpherson

Reputation: 515

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.

Upvotes: 11

Related Questions