When debugging in device with ART enabled, android app is slow

一笑奈何 提交于 2019-11-29 05:00:44

问题


i dont know why but a week ago when i am debugging my app in android studio, the app in device is very slow, but if a generate the APK or use the play (Not debug) option works fine..

Anyone have idea why? I think i didnt any change in sdk or in the app to do it this..


回答1:


When ART is enabled, the device cannot ensure the compiled code matches the bytecode instructions. It therefore cannot step through instructions and therefore lines.

This forces the device to fallback to a very slow interpreter, which possibly doesn't even JIT-compile.

For faster debugging, switch back to Dalvik.



来源:https://stackoverflow.com/questions/23300953/when-debugging-in-device-with-art-enabled-android-app-is-slow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!