Android building error

I try to build an android project, but give me 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)

Unity 4.1.2
Latest Android SDK
Latest JDK
Java installed
Mac OSX Mountain Lion

Somebody help me? Thanks.

Hey I’ve found a bit of a fix. If you roll back your Android SDK to revision 21 it will compile perfectly fine. I guess we’ll just have to wait until Unity patches it in a later update.

I found a hack on a different thread that worked for me. If you can’t rollback ( because you just installed ADT 22 ) just copy the tools folder from the androi sdk r21 over the tools folder in the adt 22 install and it works.

Same error - for the record.
Mac, latest everything.

Many have this problem, maybe the Unity instructions should include the fix?