I\'m running a Linux Ubuntu 18 OS. Installed jdk in a custom local directory.
Normally, IntelliJ recommends that you use the default gradle wrapper. But
use the default gradle wrapper
check , maybe you have 2 times gradle in path