Accelerate your deployment time when working with an Android 5.1 device/emulator:ART
is awesome, but the AOT
(ahead-of-time) compilation step can be quite long
, taking 5, 10 or even more seconds.
Which is usually
a waste on time when you're developing.
The good news is now, with Android 5.1,vmSafeMode
which was used with Dalvik to deactive JIT compilation, now actually deactivates the AOT one with ART, so you can fallback to an interpreted mode. 
Set this property in your debug builds by adding <application android:vmSafeMode="true"/>
and the dex2oat
step will suddenly be a lot faster. :)
 https://android.googlesource.com/platform/art/+/4489369#gde #android #androidddev