If you wait, the compiling will automatically switch to "standard dexer" instead of "optimised dexer". It is generally not that obvious to see that there is a new dialog that asks you if you'd like to go on with the standard dexer, or just abort everything. This automatically happens each time the compiling time takes too long. So you should check quite a few times whether that dialog comes up and go on with the standard dexer.
the thing is that nothing happens it only stuck
so nothing happens the software freezes and i need to kill it and start again
and then it works for 2-3 times and again stuck while compile
in step of installing to device.. i am using USB debug
but now i found out that there is a Background Compile and install and i am using it and runs much better have much less faild installes and 0 freezing