{"id":15378,"date":"2015-05-22T20:36:45","date_gmt":"2015-05-22T12:36:45","guid":{"rendered":"http:\/\/living.donghong.info\/blog\/?p=15378"},"modified":"2015-11-05T09:37:31","modified_gmt":"2015-11-05T01:37:31","slug":"setup-android-studio-1-2-memo-150506","status":"publish","type":"post","link":"https:\/\/donghong.info\/blog\/?p=15378","title":{"rendered":"Setup Android Studio 1.2 (150506)"},"content":{"rendered":"<p>This post is under <a href=\"\/blog\/?page_id=10815\">\u8edf\u9ad4\u958b\u767c<\/a><\/p>\n<ol>\n<li>\u4f9d\u7167\u6b64\u6587\u00a0<a href=\"http:\/\/www.codedata.com.tw\/mobile\/android-tutorial-the-1st-class-2-android-sdk\/\">Android Tutorial \u7b2c\u4e00\u5802\uff082\uff09\u6e96\u5099 Android Studio \u958b\u767c\u74b0\u5883<\/a>\u00a0\u5b89\u88dd Android Studio\u3002<\/li>\n<li>\u57f7\u884c\u6a21\u64ec\u5668\u5931\u6557\uff0c\u56e0\u70ba\u5fc5\u9808\u555f\u7528\u786c\u9ad4\u52a0\u901f\n<ul>\n<li>Android Studio\u5728\u5b89\u88dd\u6642\uff0c\u4fbf\u6703\u5075\u6e2cCPU\u662f\u5426\u652f\u63f4\u786c\u9ad4\u52a0\u901f\uff0c\u4e26\u5efa\u8b70\u6240\u4f7f\u7528\u7684\u8a18\u61b6\u9ad4\u5927\u5c0f\u3002\u7576\u521d\u5982\u679c\u4e0d\u5c0f\u5fc3\u53d6\u6d88\u52fe\u9078\uff0c\u4ee5\u5f8c\u81ea\u884c\u8a2d\u5b9a\uff0c\u53ef\u80fd\u5c31\u6709\u554f\u984c\u3002<\/li>\n<li>\u82e5\u5f8c\u4f86\u767c\u73feHAXM\u6c92\u6709\u88dd\uff0c\u53ef\u4ee5\u53c3\u8003\u6b64\u6587\u770b\u770b\u786c\u9ad4\u662f\u5426\u652f\u63f4\uff1a<a href=\"http:\/\/boookpage.com\/2015\/02\/06\/android-studio-%E5%9F%B7%E8%A1%8C%E6%A8%A1%E6%93%AC%E5%99%A8%E5%A4%B1%E6%95%97%E8%A7%A3%E6%B1%BA%E8%BE%A6%E6%B3%95\/\">ANDROID STUDIO \u57f7\u884c\u6a21\u64ec\u5668\u5931\u6557\u89e3\u6c7a\u8fa6\u6cd5<\/a>\u3002<\/li>\n<li>\u82e5\u662f\u5728\u5b89\u88ddHAXM\u6642\uff0c\u51fa\u73fe\u932f\u8aa4\u8a0a\u606f\u5982\uff1a &#8220;Failed to configure driver: unknown error. Failed to open driver&#8221;(\u901a\u5e38\u51fa\u73fe\u5728window7\u4ee5\u53cawindows8.0)\u3002\u82e5\u786c\u9ad4\u7684\u78ba\u70baIntel CPU\u4e14\u6709\u652f\u63f4vt xd(\u53ef\u9023\u81f3<a href=\"http:\/\/ark.intel.com\/\">\u6b64\u7db2\u9801<\/a>\u4ee5CPU\u578b\u865f\u67e5\u8a62)\uff0c\u53ef\u53c3\u8003\u9019\u7bc7\u8a0e\u8ad6\u5012\u6578\u7b2c\u4e8c\u7bc7\u6587\u7ae0\uff1a<a href=\"https:\/\/software.intel.com\/en-us\/forums\/topic\/351159?page=1\">HAXM install fails on Windows 7 &#8211; &#8220;Failed to configure driver: unknown error. Failed to open driver&#8221;<\/a>\uff0c\u89e3\u6cd5\u5982\u4e0b\uff1a<br \/>\n<blockquote><p>Connect your computer to internet<br \/>\nFrom command line run &#8220;certmgr.msc&#8221;, go to \u201cTrusted Root Certification Authorities\u201d -&gt; \u201cCertificates\u201d, ensure following certificate is there. If not existing, just wait for a while with computer connecting to internet, and it will be installed automatically<br \/>\nAddTrust External CA Root AddTrust External CA Root 5\/30\/2020 Server Authenticati&#8230; USERTrust<\/p>\n<p>After the above certificate is there, then run the HAXM installer.<\/p><\/blockquote>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u8a0a\u606f\u8996\u7a97\u51fa\u73fe\uff1a\u201cHAX is not working and emulator runs in emulation mode\u201d\u3002\u9019\u662f\u56e0\u70baHAXM\u5b89\u88dd\u6642\u7684\u8a18\u61b6\u9ad4\u8a2d\u5b9a\u8207Android Studio \u5167\u90e8\u7684\u8a2d\u5b9a\u4e0d\u7b26\uff0c\u53ef\u53c3\u8003\u6b64\u6587\u00a0<a href=\"http:\/\/stackoverflow.com\/questions\/21031903\/how-to-fix-hax-is-not-working-and-emulator-runs-in-emulation-mode\">How to fix: \u201cHAX is not working and emulator runs in emulation mode\u201d<\/a>\u00a0\u8aaa\u660e\uff1aThe HAXM installer suggested a 1GB default, but the Nexus 5 AVD is set to use 1536. Set it back to 1GB and we&#8217;re on!<\/li>\n<li>\u6a21\u64ec\u5668\u4e00\u76f4\u505c\u7559\u5728\u958b\u6a5f\u756b\u9762\u3002\u9019\u662f\u56e0\u70ba\u96fb\u8166\u6c92\u6709\u652f\u63f4 Audio device\u3002\u53c3\u8003\u9019\u7bc7\u6587\u7ae0<a href=\"http:\/\/stackoverflow.com\/questions\/3165667\/android-emulator-hang-up-and-impossible-to-quit\">\u00a0Android Emulator hang up and impossible to quit<\/a>\u00a0\u7684\u89e3\u6cd5\uff1aRun\\Run configurations&#8230;\\&lt;Your configuration&gt;\\Target\\Additional Emulator Commandline Options. Enter -noaudio\u3002<\/li>\n<li>Android Studio\u6a21\u64ec\u5668\u9810\u89bd\u756b\u9762\u4e0d\u80fd\u6b63\u5e38\u986f\u793a\u3002\u9019\u662f\u56e0\u70ba\u5347\u7d1a\u5230API22\uff0c\u4f46\u7a0b\u5f0f\u78bc\u7684Activity\u985e\u5225\u4ecd\u4f7f\u7528\u5df2\u5ee2\u68c4\u7684ActionBarActivity\u6240\u5c0e\u81f4\u3002\u53ef\u4ee5\u5c07\u9810\u89bd\u6240\u4f7f\u7528\u7684API\u8abf\u56de\u5230API21\uff0c\u6216\u662f\u6539\u7e7c\u627fActivity\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>This post is under \u8edf\u9ad4\u958b\u767c \u4f9d\u7167\u6b64\u6587\u00a0Android Tutorial \u7b2c\u4e00\u5802\uff082\uff09\u6e96\u5099  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[169],"tags":[542],"class_list":["post-15378","post","type-post","status-publish","format-standard","hentry","category-computer","tag-android"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/donghong.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/15378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/donghong.info\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/donghong.info\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/donghong.info\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/donghong.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15378"}],"version-history":[{"count":1,"href":"https:\/\/donghong.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/15378\/revisions"}],"predecessor-version":[{"id":15542,"href":"https:\/\/donghong.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/15378\/revisions\/15542"}],"wp:attachment":[{"href":"https:\/\/donghong.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/donghong.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/donghong.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}