{"id":207173,"date":"2023-08-09T23:03:09","date_gmt":"2023-08-09T15:03:09","guid":{"rendered":"https:\/\/www.idc.net\/help\/207173\/"},"modified":"2023-08-09T23:03:09","modified_gmt":"2023-08-09T15:03:09","slug":"android%e5%85%a8%e6%96%b0%e8%bf%90%e8%a1%8c%e6%97%b6-art%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/207173\/","title":{"rendered":"Android\u5168\u65b0\u8fd0\u884c\u65f6 ART\u4ecb\u7ecd"},"content":{"rendered":"<p>ART\u662fAndroid\u6700\u65b0\u63a8\u51fa\u7684\u8fd0\u884c\u65f6\uff08\u865a\u62df\u673a\uff09\uff0c\u4f1a\u5728Android 4.4\uff08Kitkat\uff09\u4e2d\u53d1\u5e03\uff0c\u76ee\u524dART\u4ecd\u662f\u4e00\u4e2a\u5b9e\u9a8c\u6027\u7684\u9879\u76ee\u3002Kitkat\u4e2d\u5305\u542b\u7684ART\u9879\u76ee\u4ecd\u7136\u5728\u5f00\u53d1\u8fc7\u7a0b\u5f53\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7Setting\u83dc\u5355\u7684 developer options\u9009\u9879\u6253\u5f00ART\u8fdb\u884c\u9884\u89c8\u4f53\u9a8c\u3002\u5f53\u7136\uff0cGoogle\u73b0\u5728\u63d0\u4f9b\u9884\u89c8\u7684\u4e3b\u8981\u610f\u56fe\u8fd8\u662f\u641c\u96c6\u5f00\u53d1\u8005\u4ee5\u53ca\u5408\u4f5c\u4f19\u4f34\u7684\u610f\u89c1\u53cd\u9988\u3002<\/p>\n<p style=\"text-align: center\"><span>[[90524]]<\/span><\/p>\n<p><span>\u6ce8\u610f\uff1a<\/span>\u5728\u4f53\u9a8cART\u7684\u65f6\u5019\uff0c\u6700\u597d\u628aDalvik\u8bbe\u7f6e\u6210\u9ed8\u8ba4\u865a\u62df\u673a\u8fd0\u884c\u65f6\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u635f\u574f\u4f60\u7684Android\u5e94\u7528\u7a0b\u5e8f\u6216\u8005\u7b2c\u4e09\u65b9\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u5728Kitkat\u91cc\uff0c\u76ee\u524d\u4e24\u4e2a\u8fd0\u884c\u65f6\u76ee\u524d\u90fd\u662f\u53ef\u7528\u7684\uff0c\u5206\u522b\u662f\uff1aDalvik\u8fd0\u884c\u65f6\uff08libdvm.so)\u4ee5\u53caART(libart.so). \u4f60\u53ef\u4ee5\u7528\u5176\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\u521b\u5efa\u8bbe\u5907\uff0c\u4e5f\u53ef\u4ee5\u4e24\u4e2a\u90fd\u7528\u3002\uff08\u5982\u679c\u4e24\u4e2a\u8fd0\u884c\u65f6\u90fd\u5b89\u88c5\u4e86\u7684\u8bdd\uff0c\u4f60\u53ef\u4ee5\u5728Developer Options\u91cc\u9009\u62e9\u53cc\u8fd0\u884c\u65f6\u542f\u52a8\uff09<\/p>\n<p>Dalvik\u865a\u62df\u673a\u547d\u4ee4\u884c\u5de5\u5177\u76ee\u524d\u5bf9\u4e24\u4e2a\u8fd0\u884c\u65f6\u90fd\u53ef\u7528\u3002\u67e5\u770bruntime_common.mk\u53ef\u4ee5\u83b7\u5f97\u66f4\u591a\u7684\u7ec6\u8282\u3002\u8be5\u6587\u4ef6\u4f1a\u88abbuild\/target\/product\/runtime_libdvm.mk\u5305\u542b\uff0c\u4f5c\u4e3abuild\u914d\u7f6e\u3002<\/p>\n<p>\u65b0\u589e\u53d8\u91cfPRODUCT_RUNTIMES\u7528\u6765\u63a7\u5236\u5728build\u4e2d\u4f7f\u7528\u54ea\u4e2a\u8fd0\u884c\u65f6\u3002\u5728build\/target\/product\/core_minimal.mk \u6216 build\/target\/product\/core_base.mk\u90fd\u8981\u8bbe\u7f6e\u8fd9\u4e2a\u53d8\u91cf\u3002<\/p>\n<p>\u5177\u4f53\u5199\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre>\n \n \n <ol>\n  \n  \n  <li><span><span>PRODUCT_RUNTIMES&nbsp;:=&nbsp;runtime_libdvm_default&nbsp;<\/span><\/span><\/li>\n  \n  \n  <li><span>PRODUCT_RUNTIMES&nbsp;+=&nbsp;runtime_libart&nbsp;<\/span><\/li>\n \n \n <\/ol><\/pre>\n<p>\u8fd9\u4e2a\u53d8\u91cf\u8bbe\u7f6e\u4f1a\u628a\u4e24\u4e2a\u8fd0\u884c\u65f6\u90fd\u52a0\u5165\u5230build\u548c\u5b89\u88c5\u4e2d\uff0c\u5e76\u4e14\u9ed8\u8ba4Dalivk\u4e3a\u9ed8\u8ba4\u7684\u865a\u62df\u673a\u3002<\/p>\n<p>ART\u7684\u6e90\u4ee3\u7801\u4e0b\u8f7d\u5730\u5740\uff1a<strong>https:\/\/android.googlesource.com\/platform\/art\/+\/kitkat-release<\/strong><\/p>\n<p>\u539f\u6587\u94fe\u63a5\uff1a source.android.com \u7ffb\u8bd1\uff1a  ImportNew.com  - \u9ec4\u5c0f\u975e<br \/> \u8bd1\u6587\u94fe\u63a5\uff1a http:\/\/www.importnew.com\/6751.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ART\u662fAndroid\u6700\u65b0\u63a8\u51fa\u7684\u8fd0\u884c\u65f6\uff08\u865a\u62df\u673a\uff09\uff0c\u4f1a\u5728Android 4.4\uff08Kitkat\uff09\u4e2d\u53d1\u5e03\uff0c\u76ee\u524dART [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[195111],"tags":[],"class_list":["post-207173","post","type-post","status-publish","format-standard","hentry","category-android"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/207173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=207173"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/207173\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=207173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=207173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=207173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}