Android – Failed to complete Gradle execution cause write access is allowed from event dispatch thread only

androidandroid-studiogradle

when I open my android studio, after completing the Gradle build, i get the following error
"Failed to complete Gradle execution

cause:

write access is allowed from event dispatch thread only"

what do I do ?

Here is the picture of error message

enter image description here

Best Answer

I closed the IDE, deleted the .AndroidStudio3.0 folder in the user home and after i started it again that error disappeared. The IDE had also deactivated the android support plugin by itself. I exported the settings before deleting the folder to override the defaults quickly after 'reinstall'.

After importing all settings the error reappeared so I repeated the delete operation and then imported the all settings except the SDK settings and made it work. It seems some of the settings were changed, preventing the IDE from functioning.