当设备调试与技术启用,Android应用程序是缓慢的 [英] When debugging in device with ART enabled, android app is slow

查看:219
本文介绍了当设备调试与技术启用,Android应用程序是缓慢的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道为什么,但一个星期前,当我调试我的应用程序在Android中的工作室,在设备中的应用程序很慢,但如果生成APK或者使用播放(不调试)选项工作正常。

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..

任何人有想法,为什么?我觉得我没有在SDK或在应用程序中的任何变化做这个。

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

推荐答案

当艺术被使能,设备不能保证编译code匹配的字节code指令。因此,它不能透过指示,因此行步骤

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

这迫使设备退回到一个非常缓慢的跨preTER,这可能甚至没有JIT编译。

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

为了更快地调试,切换回的Dalvik。

For faster debugging, switch back to Dalvik.

这篇关于当设备调试与技术启用,Android应用程序是缓慢的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆