Android studio (Gradle project sync failed)


#1

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.


#2

@sangar-happy hat version of Endless OS are you using?
To check which version of Endless OS you are in Settings :arrow_right: Details


#3

version 3.5.3 (181213-123044)


#4

@sangar-happy To get support with Android Studio report the error here https://github.com/flathub/com.google.AndroidStudio/issues


#5

H,

iGrandle is the java android build tool, I believe it’s for permission reasons.


#6

and how would this issue resolve?


#7

I’m installing jdk to see if it solves


#8

Flathub: falied to get permissions: Unable to load metadata from remote


closed #9