The project build is failing.
Gradle sync failed: A problem occurred configuring project ‘:app’.
Consult IDE log for more details (Help | Show Log) (353 ms)
The log:
2019-01-08 22:34:42,139 [ thread 83] INFO - agnostic.FrequentEventDetector - Too many events posted, #3. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.android.tools.idea.sdk.wizard.InstallSelectedPackagesStep$CustomLogger$$Lambda$2483/693854545@14946796,notifier=null,catchExceptions=false,when=1546967082139] on sun.awt.X11.XToolkit@396f07cc
2019-01-08 22:34:42,182 [ thread 83] INFO - agnostic.FrequentEventDetector - Too many events posted, #1. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.android.tools.idea.sdk.wizard.InstallSelectedPackagesStep$CustomLogger$$Lambda$2480/1893740824@66f4e2e6,notifier=null,catchExceptions=false,when=1546967082182] on sun.awt.X11.XToolkit@396f07cc
2019-01-08 22:34:42,230 [ thread 83] INFO - agnostic.FrequentEventDetector - Too many events posted, #4. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.openapi.MnemonicWrapper$LabelWrapper@30a9737e,notifier=null,catchExceptions=false,when=1546967082230] on sun.awt.X11.XToolkit@396f07cc
2019-01-08 22:34:42,276 [ thread 83] INFO - agnostic.FrequentEventDetector - Too many events posted, #1. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.android.tools.idea.sdk.wizard.InstallSelectedPackagesStep$CustomLogger$$Lambda$2480/1893740824@696caf9c,notifier=null,catchExceptions=false,when=1546967082276] on sun.awt.X11.XToolkit@396f07cc
2019-01-08 22:34:42,320 [ thread 83] INFO - agnostic.FrequentEventDetector - Too many events posted, #3. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.android.tools.idea.sdk.wizard.InstallSelectedPackagesStep$CustomLogger$$Lambda$2483/693854545@41c1be30,notifier=null,catchExceptions=false,when=1546967082320] on sun.awt.X11.XToolkit@396f07cc
2019-01-08 22:34:42,367 [ thread 83] INFO - agnostic.FrequentEventDetector - Too many events posted, #4. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.openapi.MnemonicWrapper$LabelWrapper@30a9737e,notifier=null,catchExceptions=false,when=1546967082367] on sun.awt.X11.XToolkit@396f07cc
2019-01-08 22:34:42,411 [ thread 83] INFO - agnostic.FrequentEventDetector - Too many events posted, #4. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.openapi.MnemonicWrapper$LabelWrapper@30a9737e,notifier=null,catchExceptions=false,when=1546967082411] on sun.awt.X11.XToolkit@396f07cc
2019-01-08 22:34:42,457 [ thread 83] INFO - agnostic.FrequentEventDetector - Too many events posted, #5. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.android.tools.idea.sdk.wizard.InstallSelectedPackagesStep$CustomLogger$$Lambda$2480/1893740824@db691ae,notifier=null,catchExceptions=false,when=1546967082457] on sun.awt.X11.XToolkit@396f07cc
2019-01-08 22:34:42,527 [ thread 83] INFO - agnostic.FrequentEventDetector - Too many events posted, #2. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.android.tools.idea.sdk.wizard.InstallSelectedPackagesStep$CustomLogger$$Lambda$2480/1893740824@5dcd4867,notifier=null,catchExceptions=false,when=1546967082527] on sun.awt.X11.XToolkit@396f07cc
The error I had before this was:
Gradle ‘MyApplication’ project refresh failed. Error:Could not run build action using Gradle distribution ’
found a fix on stack overflow (just deleted all .gradle directories).
I couldn’t find similar error to what I got now, so asking for help here.