Gradle error: ‘Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused’

When I try to build, I get the errors:

‘Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused’, ‘Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8’

‘CommandInvokationFailure: Gradle build failed.’

Are you sure your internet connection is working fine?
Need more info on error ‘CommandInvokationFailure: Gradle build failed.’.

Use Auto Resolver I Hope That Will Remove All Errors
Go In Assets At Top > External Dependency Manager

See Specific Requirements What You Want And Press Force Resolve For Example If My Project Is In Android So Just Select Android Resolver After The External Dependency Manager And Force Resolve.