What is ART(Android Run Time), is their any changes required in live android application for making it compatible with ART?

a 夏天 提交于 2019-12-06 14:53:11

问题


I am heard that now Google start using ART, a new run-time for executing Android app and its come with Android 4.4 (in some devices). Now I am just want to confirm that, is pro-grammatically any changes are required or not in existing application or their is any criteria for making new application i.e. run on Dalvik but also compatible with ART ?


回答1:


I am heard that now Google start using ART, a new run-time for executing Android app and its come with Android 4.4 (in some devices)

ART is not enabled by default on Android 4.4. It is enabled by default on the "L" Developer Preview. It probably will be enabled by default on whatever the next production release of Android is.

is pro-grammatically any changes are required or not in existing application or their is any criteria for making new application i.e. run on Dalvik but also compatible with ART ?

Quoting the documentation (emphasis added):

This document lets you know about things to watch for when migrating an existing app to be compatible with ART. Most apps should just work when running with ART. However, some techniques that work on Dalvik do not work on ART. This document discusses some of these issues.

If you are using the NDK, there's a chance you will need to make some ART-related adjustments. After that, the scenarios in which you would have to change for ART get fairly esoteric.



来源:https://stackoverflow.com/questions/25241786/what-is-artandroid-run-time-is-their-any-changes-required-in-live-android-app

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