Error with Ubuntu

Hi ppl.

I have some problems in Linux with Sugar Mobile SDK (and I know it doesn't have any support whit this SO).

I'm follow a doc "Uncon 2017_ Building Custom Apps Using SugarCRM Mobile SDK"

I was execute
   âž” $SUGAR_MOBILE_SDK_HOME/[sdk-version]/sdk/generate-app [app-folder]
  âž” ./sdk help
  âž” ./sdk debug

And it works, but I have some problems with ./sdk build -p android, (I attach console log and
./sdk build -p android -s status --verbose log)

I noticed a Error with JAVA_HOME, but when I executed echo $JAVA_HOME it's the normal environment variable

Does somebody have any suggestion?

Greetings

_build_android_verbose.log.zip

_build_android.log.zip