Console error after selecting Android SDK location

Error building Player: Exception: android (invokation failed)
ERROR: unknown error
cmd:android list target -c
Exception in thread “main” java.lang.NullPointerException
at SDKMain.main(

I am running Unity 4.1.2f1 , adt-bundle-windows-x86_64-20130514 installed, with Android 4.2.2 (API 17), all of ‘Tools’, Android support library and USB drivers.

I get this error after doing any build for Android in unity, after which it stops compiling.

Looks like a lot of people or having problems, lol. I followed this and got it to work: