{"id":4237,"date":"2018-07-15T12:07:14","date_gmt":"2018-07-15T04:07:14","guid":{"rendered":"http:\/\/www.bookcard.net\/wordpress\/?p=4237"},"modified":"2018-07-21T07:29:40","modified_gmt":"2018-07-20T23:29:40","slug":"android_studio_run_android_app","status":"publish","type":"post","link":"https:\/\/www.bookcard.net\/wordpress\/android_studio_run_android_app\/","title":{"rendered":"Android Studio\u555f\u52d5Android\u61c9\u7528"},"content":{"rendered":"<figure id=\"attachment_4242\" aria-describedby=\"caption-attachment-4242\" style=\"width: 1024px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_Debug.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4242\" src=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_Debug.jpg\" alt=\"\" width=\"1024\" height=\"768\" srcset=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_Debug.jpg 1024w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_Debug-300x225.jpg 300w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_Debug-768x576.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption id=\"caption-attachment-4242\" class=\"wp-caption-text\">Android Studio\u555f\u52d5Android\u61c9\u7528Debug<\/figcaption><\/figure>\n<figure id=\"attachment_4241\" aria-describedby=\"caption-attachment-4241\" style=\"width: 1024px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_Variableh.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4241\" src=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_Variableh.jpg\" alt=\"\" width=\"1024\" height=\"768\" srcset=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_Variableh.jpg 1024w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_Variableh-300x225.jpg 300w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_Variableh-768x576.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption id=\"caption-attachment-4241\" class=\"wp-caption-text\">Android Studio\u555f\u52d5Android\u61c9\u7528Variableh<\/figcaption><\/figure>\n<figure id=\"attachment_4240\" aria-describedby=\"caption-attachment-4240\" style=\"width: 1024px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_RUN_APP.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4240\" src=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_RUN_APP.jpg\" alt=\"\" width=\"1024\" height=\"768\" srcset=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_RUN_APP.jpg 1024w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_RUN_APP-300x225.jpg 300w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_RUN_APP-768x576.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption id=\"caption-attachment-4240\" class=\"wp-caption-text\">Android Studio\u555f\u52d5Android\u61c9\u7528<\/figcaption><\/figure>\n<figure id=\"attachment_4239\" aria-describedby=\"caption-attachment-4239\" style=\"width: 1024px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_RUN_ADB.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4239\" src=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_RUN_ADB.jpg\" alt=\"\" width=\"1024\" height=\"768\" srcset=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_RUN_ADB.jpg 1024w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_RUN_ADB-300x225.jpg 300w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_RUN_ADB-768x576.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption id=\"caption-attachment-4239\" class=\"wp-caption-text\">Android Studio\u555f\u52d5Android\u61c9\u7528ADB<\/figcaption><\/figure>\n<figure id=\"attachment_4238\" aria-describedby=\"caption-attachment-4238\" style=\"width: 1024px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_APP_ADB.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4238\" src=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_APP_ADB.jpg\" alt=\"\" width=\"1024\" height=\"768\" srcset=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_APP_ADB.jpg 1024w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_APP_ADB-300x225.jpg 300w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/07\/Android_Studio_APP_ADB-768x576.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption id=\"caption-attachment-4238\" class=\"wp-caption-text\">Android Studio\u555f\u52d5Android\u61c9\u7528ADB<\/figcaption><\/figure>\n<p><a href=\"https:\/\/www.bookcard.net\/wordpress\/android_studio_new_project\/\">\u5275\u5efaAndroid\u61c9\u7528\u9805\u76ee<\/a>\u9700\u8981\u5728\u624b\u6a5f\u4e0a\u555f\u52d5.<\/p>\n<ol>\n<li>\u5c0d\u9805\u76ee\u9032\u884c\u7de8\u8b6f\u5de5\u5177\u6b04Build\/Mak Project<\/li>\n<li>\u5c07\u624b\u6a5f\u8207\u96fb\u8166\u9023\u63a5(USB\u7dda)<\/li>\n<li>\u8a2d\u5b9a\/\u66f4\u591a\u8a2d\u5b9a\/\u958b\u767c\u8005\u9078\u9805<\/li>\n<li>\u555f\u52d5\u300e\u958b\u555f\u958b\u767c\u4eba\u54e1\u9078\u9805\u300f<\/li>\n<li>\u555f\u52d5\u300eUSB\u8abf\u8a66\u300f\u9023\u63a5USB\u5f8c\u555f\u7528\u5075\u932f\u6a21\u5f0f<\/li>\n<li>\u555f\u52d5\u300eUSB\u5b89\u88dd\u300f\u5141\u8a31\u901a\u904eUSB\u5b89\u88dd\u61c9\u7528<\/li>\n<li>\u555f\u52d5\u300eUSB\u8abf\u8a66\u300f(\u5b89\u5168\u8a2d\u5b9a)\u5141\u8a31\u901a\u904eUSB\u8abf\u8a66\u4fee\u6539\u6b0a\u9650\u6216\u865b\u64ec\u89f8\u78b0<\/li>\n<li>\u7de8\u8f2f\u914d\u7f6e\u6587\u6a94Run-&gt;Edit Configurations-&gt;app-&gt;General<\/li>\n<li>Module\u9078app<\/li>\n<li>Deploy\u9078Default APK<\/li>\n<li>Launch\u9078Default Activity<\/li>\n<li>Target\u9078USB Device<\/li>\n<li>\u5728\u624b\u6a5f\u4e0a\u555f\u52d5\u5de5\u5177\u6b04Run-&gt;Run<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>\u672a\u80fd\u6b63\u78ba\u5728\u624b\u6a5f\u4e0a\u8abf\u8a66APP\u591a\u70baADB(Android Debug Bridge)\u672a\u6b63\u78ba\u5b89\u88dd<\/p>\n<ol>\n<li>\u4e0b\u8f09Android SDK Platform-Tools(\u5305\u542bEXE)<\/li>\n<li>\u7cfb\u7d71\u300ePath\u300f\u8b8a\u6578\u5fc5\u9808\u9700\u6b63\u78ba\u8a2d\u7f6e. \u300e%ANDROID_HOME%\\platform-tools;%ANDROID_HOME%\\tools;\u300f<\/li>\n<li>\u4e0b\u8f09\u4e26\u6b63\u78ba\u5b89\u88ddGoogle USB Driver.\u9019\u9ede\u5f88\u91cd\u8981\u5f88\u591a\u6642\u5c31\u662fAndroid ADB Interface\u9a45\u52d5\u7121\u6b63\u78ba\u5b89\u88dd.<\/li>\n<li>\u300e\u7cfb\u7d71\u5167\u5bb9-&gt;\u786c\u9ad4-&gt;\u88dd\u7f6e\u7ba1\u7406\u54e1-&gt;ADB Interface\u300f\u82e5\u6709\u5606\u865f\u5247\u4ee3\u8868\u9a45\u52d5\u672a\u6b63\u78ba\u5b89\u88dd<\/li>\n<li>\u4e0b\u8f09\u9a45\u53bb\u9801<a href=\"https:\/\/developer.android.com\/studio\/run\/win-usb\">Get the Google USB Driver<\/a> \u6700\u65b0\u9a45\u52d5<a href=\"https:\/\/dl-ssl.google.com\/android\/repository\/latest_usb_driver_windows.zip\">Download the Google USB driver<\/a>\u4e0b\u8f09\u5f8c\u89e3\u58d3\u7e2e\u5230D:\\Android\\usb_driver<\/li>\n<li>\u6700\u5f8c\u5f37\u5236\u5b89\u88dd\u9a45\u52d5.\u300e\u7cfb\u7d71\u5167\u5bb9-&gt;\u786c\u9ad4-&gt;\u88dd\u7f6e\u7ba1\u7406\u54e1-&gt;ADB Interface-&gt;\u66f4\u65b0\u9a45\u52d5\u7a0b\u5f0f-&gt;\u700f\u89bd\u96fb\u8166\u4e0a\u9a45\u52d5\u7a0b\u5f0f\u8edf\u9ad4(\u624b\u52d5\u5c0b\u627e\u4e26\u5b89\u88dd\u9a45\u52d5\u7a0b\u5f0f\u8edf\u9ad4)-&gt;\u8b93\u6211\u5f9e\u96fb\u8166\u4e0a\u88dd\u7f6e\u53d6\u52d5\u7a0b\u5f0f\u6e05\u55ae\u4e2d\u6311\u9078(\u6b64\u6e05\u55ae\u6703\u986f\u793a\u5df2\u5b89\u88dd\u4e26\u4e14\u8207\u88dd\u7f6e\u76f8\u5bb9\u9a45\u52d5\u7a0b\u5f0f\u8edf\u9ad4,\u4ee5\u53ca\u8207\u88dd\u7f6e\u5c6c\uffff\u540c\u985e\u5225\u6240\u6709\u9a45\u52d5\u7a0b\u5f0f\u8edf\u9ad4)-&gt;\u5f9e\u78c1\u7247\u5b89\u88dd-&gt;\u6253\u958b(USB drect)-&gt;\u9078\u64c7\uff08Android ADB Interface\uff09\u300f<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>\u82e5ADB\u4f9d\u7136\u672a\u80fd\u6b63\u78ba\u904b\u884c\u53ef\u5617\u8a66\u624b\u52d5\u91cd\u555f.win+r\u8f38\u5165CMD\u555f\u52d5\u547d\u4ee4\u884c\u7a97\u53e3<\/p>\n<p>1.\u505c\u6b62ADB\u670d\u52d9<\/p>\n<p>adb kill-server<\/p>\n<p>2.\u555f\u52d5ADB\u670d\u52d9<\/p>\n<p>adb start-server<\/p>\n<p>3.\u67e5\u770b\u76ee\u524d\u9023\u63a5Android \u8a2d\u5099<\/p>\n<p>adb devices<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5275\u5efaAndroid\u61c9\u7528\u9805\u76ee\u9700\u8981\u5728\u624b\u6a5f\u4e0a\u555f\u52d5. \u5c0d\u9805\u76ee\u9032\u884c\u7de8\u8b6f\u5de5\u5177\u6b04Build\/Mak Project \u5c07\u624b\u6a5f\u8207 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/android_studio_run_android_app\/\" class=\"more-link\">\u7e7c\u7e8c\u95b1\u8b80 <span class=\"screen-reader-text\">Android Studio\u555f\u52d5Android\u61c9\u7528<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[2],"class_list":["post-4237","post","type-post","status-publish","format-standard","hentry","category-android","tag-android","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/4237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/comments?post=4237"}],"version-history":[{"count":2,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/4237\/revisions"}],"predecessor-version":[{"id":4286,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/4237\/revisions\/4286"}],"wp:attachment":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/media?parent=4237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/categories?post=4237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/tags?post=4237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}