I have implemented project by using third party library(zxing) after implementation project is working fine then after I have written one test project to unit test my projec
Unfortunately, the best solution which i have seen, it's to use a script with these code lines and using Espresso v2.0:
adb shell setprop dalvik.vm.dexopt-flags v=n,o=v adb shell stop installd adb shell start installd
Execute it before you begin to test. It's only necessary to do it once time.