I get Build failed with an exception error every time i run a batch file for setting up gradle

Hi, so i get “Build failed with an exception” every time i run the batch file that i need to run to set up gradle for the source code i am using. the cmd says that there are “3 incompatible Daemons could not be reused”. can someone please help me.
i think it may be a config error but i don’t know how to fix it, i reinstalled gradle, intellij, even installed eclipse and i get the same error.