Arduino ADK + Processing


I have a project where i have to send some data from arduino to android. I checked the internet and found the arduino mega adk + processing the most easy way to do it. So i bought the adk board but not even a single ArduinoADKUsb example worked in processing. I have Processing 2.2.1 and Arduino 1.5.6r2. I am getting the processing code compiled but with the following error :

FATAL EXCEPTION: Animation Thread
Process:, PID: 28362
java.lang.RuntimeException: stub
at Source)
at cc.arduino.ADKCommunication.(Unknown Source)
at cc.arduino.ArduinoAdkUsb.(Unknown Source)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PGraphicsAndroid2D.requestDraw(Unknown Source)
at Source)

I am getting the sketch on my Android phone as well but when I open it says “Unfortunately adk_analogRead has stopped”