Can't build into Android

hello guys ,i am new into android dev since it’s already free on unity xD
so i tried my mock project to build for android ,and everytime i build it ,i get this error

Error building Player: Exception: android (invokation failed)
ERROR: unknown error
cmd:android list target -c
stdout;
stderr:
Exception in thread “main” java.lang.NullPointerException
at SDKMain.main(SDKMain.java:62)
Picked up _JAVA_OPTIONS: -Xmx512M

and i already setup the environtment etc based on this video :Creating games for the Android with Unity - YouTube

and all working good based on that video ,that’s why i don’t know why i keep getting error :frowning:
and of course i already google and search on answers and forum ,but still ,nothing work, i already add java -xmx512 and the path for jdk and java ,but still doesn’t work

please help :cry:

I suspect this is the same problem which can be solved using this answer from another question: http://answers.unity3d.com/questions/461115/android-build-fails-with-unknown-reason-after-upgr.html#answer-461120

Ive installed java 32bit and now unity finds the jdk and and the android-sdk. it can also be installed in D:\ or whatever folder with android-jdk name. also ive needed to add JAVA_HOME PATH as mentioned in Error building Player · Issue #3 · playgameservices/play-games-plugin-for-unity · GitHub
finally…