# find all the process related to gradle by ps aux | grep gradle # then kill the process kill -9 <pid> # and build again :)