Hello Guys, How are you all? Hope You all Are Fine. Today I just connect my app with the firebase and Now I am facing the following error DefaultTaskContainer#NamedDomainObjectProvider.configure(Action) on task set cannot be executed in the current context in java. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
- How DefaultTaskContainer#NamedDomainObjectProvider.configure(Action) on task set cannot be executed in the current context Error Occurs ?
- How To Solve DefaultTaskContainer#NamedDomainObjectProvider.configure(Action) on task set cannot be executed in the current context Error ?
- Solution 1: Downgrade google-services to google-services:4.3.8
- Summery
How DefaultTaskContainer#NamedDomainObjectProvider.configure(Action) on task set cannot be executed in the current context Error Occurs ?
I Just connect Firebase with my app and now I am facing the following error.
DefaultTaskContainer#NamedDomainObjectProvider.configure(Action) on task set cannot be executed in the current context
How To Solve DefaultTaskContainer#NamedDomainObjectProvider.configure(Action) on task set cannot be executed in the current context Error ?
- How To Solve DefaultTaskContainer#NamedDomainObjectProvider.configure(Action) on task set cannot be executed in the current context Error?
To Solve DefaultTaskContainer#NamedDomainObjectProvider.configure(Action) on task set cannot be executed in the current context Error Here The problem Is Google has broken something in google-services:4.3.9 So we just need to downgrade google-services to google-services:4.3.8 here is How.Just Change this below line present in your build.gradle file.
- DefaultTaskContainer#NamedDomainObjectProvider.configure(Action) on task set cannot be executed in the current context
To Solve DefaultTaskContainer#NamedDomainObjectProvider.configure(Action) on task set cannot be executed in the current context Error Here The problem Is Google has broken something in google-services:4.3.9 So we just need to downgrade google-services to google-services:4.3.8 here is How.Just Change this below line present in your build.gradle file.
Solution 1: Downgrade google-services to google-services:4.3.8
Here The problem Is Google has broken something in google-services:4.3.9 So we just need to downgrade google-services to google-services:4.3.8 here is How.
Just Change this below line present in your build.gradle file.
classpath 'com.google.gms:google-services:4.3.9'
Change it to
classpath 'com.google.gms:google-services:4.3.8'
Summery
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also Read