Building android app fail and freeze the machine

I am really stuck since 3 days with a big headache
I m trying building the app for android , it was working smoothly on an old machine ,
I m on linux mint all dependencies installed, the build stop on the gradle process and start multiple ‘java’ process, below the build log, any suggestion please

Subproject Path: CordovaLibns                \

Subproject Path: CordovaLib

Subproject Path: CordovaLib

Subproject Path: CordovaLib

Subproject Path: CordovaLibns                |

Subproject Path: CordovaLibns                [==                        ] 8% 135.4s

Subproject Path: CordovaLibns                [=========                 ] 33% 25.8s

Subproject Path: CordovaLibns                [===============           ] 58% 10.4s

Subproject Path: CordovaLib

Subproject Path: CordovaLibns                [=========================  ] 91% 1.5s

ANDROID_HOME=/home/zied/Android/Sdk          -                                     

JAVA_HOME=/usr/lib/jvm/jdk1.8.0_181

Subproject Path: CordovaLib

Starting a Gradle Daemon (subsequent builds will be faster)

Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details

Starting a Gradle Daemon, 2 busy Daemons could not be reused, use --status for details

Starting a Gradle Daemon, 3 busy Daemons could not be reused, use --status for details

Starting a Gradle Daemon, 4 busy Daemons could not be reused, use --status for details