I was just ruined by this error for the whole week. I really don't know what happened, I got this error after compiling the source, I yet write custom code there, the source is fresh from the repo. I asked my friend to run the source and it worked on his laptop.
What I was tried to fix this problem :
- File -> Invalidate Cache
- Help -> Change Memory Setting (all size was tried) (current size: 2048)
- Intellij -> Preference -> Compiler -> Shared Build Process Heap Size (all size was tried) (current size: 6048)
And I am still stuck at that error.
Lately I run this command ./gradlew build --stacktrace --info
to see the log, and i had no idea what was that. this is the full result: