Build for Android / using andriod

Hello , I’ve tried to install Android sdk but it complains about it’s path not being on C drive , and it asked me to set up environmental path variable

ERROR: JAVA_HOME is set to an invalid directory: C:\path\to\java\home
(unknown): E0200: android build failed
fuse X version 2.2.0
Starting android installer
Done installing android

then I got build error
Build failed in 10.53 seconds
1 error