Error while running in hipi

I was strying to run the gradle on HiPi but I am getting the below error

" Failed to create parent directory ‘/usr/local/hipi/.gradle’ when creating directory ‘/usr/local/hipi/.gradle/buildOutputCleanup’ "

Please help me to resolve the problem.