{"id":1012,"date":"2015-11-25T22:08:45","date_gmt":"2015-11-25T14:08:45","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=1012"},"modified":"2026-08-18T12:58:44","modified_gmt":"2026-08-18T04:58:44","slug":"android-adb%e5%91%bd%e4%bb%a4%e8%a1%8c%e5%b7%a5%e5%85%b7%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=1012","title":{"rendered":"android \u6a21\u62df\u5668\u6216\u771f\u673a\u4e0eIDE\u8fde\u63a5\u65ad\u5f00\u95ee\u9898"},"content":{"rendered":"<section id=\"wenyan\" style=\"font-family: system-ui, 'Apple Color Emoji', 'Segoe UI', 'Segoe UI Symbol', 'Noto Sans', Roboto, sans-serif; line-height: 1.75; font-size: 16px; color: #000000; caret-color: #000000;\" data-provider=\"WenYan\">\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\">\u5f00\u53d1\u65f6\u6a21\u62df\u5668\u6216\u771f\u673a\u7ecf\u5e38\u548c IDE \u65ad\u5f00\u3002\u591a\u6570\u60c5\u51b5\u662f adb \u7684 <strong>5037<\/strong> \u7aef\u53e3\u88ab\u5360\u7528\u3002Eclipse \u53ef\u5728 Devices \u7a97\u53e3 Reset adb\uff1b\u66f4\u7a33\u7684\u662f\u67e5\u51fa\u5360\u7528\u8fdb\u7a0b\u518d kill\uff0c\u5fc5\u8981\u65f6\u91cd\u542f adb \u670d\u52a1\u3002<\/p>\n<\/blockquote>\n<p><!--more--><\/p>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e00\u3001\u5e38\u7528\u5904\u7406\u987a\u5e8f<\/span><\/h2>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>Eclipse\uff1a\u5207\u5230 Device \u7a97\u53e3\uff0c\u53f3\u4fa7 <strong>Reset adb<\/strong> \u91cd\u542f adb\u3002<\/section>\n<\/li>\n<li>\n<section>\u4efb\u52a1\u7ba1\u7406\u5668 kill \u6389 adb \u8fdb\u7a0b\uff0c\u518d\u91cd\u542f\u6a21\u62df\u5668\u3002Genymotion \u8d77\u4e0d\u6765\u65f6\uff0c\u53ef\u5148\u5f00\u7cfb\u7edf\u6a21\u62df\u5668\uff0c\u518d\u5f00 Genymotion\u3002<\/section>\n<\/li>\n<li>\n<section>\u91cd\u542f Eclipse \u548c\u6a21\u62df\u5668\uff0c\u6bd4\u8f83\u9ebb\u70e6\uff0c\u653e\u6700\u540e\u3002<\/section>\n<\/li>\n<li>\n<section>\u6839\u56e0\u5f80\u5f80\u662f 5037 \u88ab\u5360\u7528\uff0c\u627e\u5230\u5360\u7528\u8005 kill \u6389\u5373\u53ef\u3002<\/section>\n<\/li>\n<\/ul>\n<table style=\"border-collapse: collapse; margin: 1.4em auto; max-width: 100%; table-layout: fixed; text-align: left; overflow: auto; display: table; overflow-wrap: break-word; word-break: break-all;\" width=\"817\">\n<thead>\n<tr>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u6b65\u9aa4<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u547d\u4ee4<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u67e5\u8c01\u5360 5037<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">netstat -aon|findstr &#8220;5037&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u7528 PID \u627e\u8fdb\u7a0b<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">tasklist|findstr &#8220;4576&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u7ed3\u675f\u8fdb\u7a0b<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">taskkill \/f \/t \/im adb.exe<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 1em 0px;\">\u5f00\u59cb \u2192 \u8fd0\u884c \u2192 CMD\uff0c\u8f93\u5165 <strong>netstat -aon|findstr &#8220;5037&#8221;<\/strong>\uff1a<\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/11\/QQ\u255c\u256a\u2550\u255d20151125224447.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-1016\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/11\/QQ\u255c\u256a\u2550\u255d20151125224447.png\" alt=\"QQ\u255c\u256a\u2550\u255d20151125224447\" width=\"533\" height=\"94\" \/><\/a><\/p>\n<p style=\"margin: 1em 0px;\">\u6839\u636e\u540e\u9762\u7684 PID\uff08\u56fe\u4e2d\u662f 4576\uff09\u67e5\u5360\u7528\u7a0b\u5e8f\uff0c\u8f93\u5165 <strong>tasklist|findstr &#8220;4576&#8221;<\/strong>\uff1a<\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/11\/QQ\u255c\u256a\u2550\u255d20151125224546.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-1017\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/11\/QQ\u255c\u256a\u2550\u255d20151125224546.png\" alt=\"QQ\u255c\u256a\u2550\u255d20151125224546\" width=\"542\" height=\"42\" \/><\/a><\/p>\n<p style=\"margin: 1em 0px;\">\u7ed3\u675f\u8be5\u8fdb\u7a0b\uff1a<strong>taskkill \/f \/t \/im<\/strong> \u540e\u8ddf\u8fdb\u7a0b\u540d\uff0c\u4f8b\u5982 adb.exe\u3002\u518d\u91cd\u65b0\u8fde\u63a5\u624b\u673a\uff0c\u7a0b\u5e8f\u5c31\u80fd\u8dd1\u8d77\u6765\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/11\/QQ\u255c\u256a\u2550\u255d20151125224608.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-1018\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/11\/QQ\u255c\u256a\u2550\u255d20151125224608.png\" alt=\"QQ\u255c\u256a\u2550\u255d20151125224608\" width=\"535\" height=\"38\" \/><\/a><\/p>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e8c\u3001\u5e38\u7528 ADB \u547d\u4ee4<\/span><\/h2>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">1. \u542f\u52a8\u548c\u5173\u95ed ADB \u670d\u52a1<\/h3>\n<p style=\"margin: 1em 0px;\">\u6a21\u62df\u5668\u8dd1\u4e00\u6bb5\u65f6\u95f4\u540e\uff0cadb \u670d\u52a1\u53ef\u80fd\u5f02\u5e38\uff08\u4efb\u52a1\u7ba1\u7406\u5668\u91cc\u80fd\u770b\u5230\u8fd9\u4e2a\u8fdb\u7a0b\uff0c\u5b83\u7ed9\u6a21\u62df\u5668\u6216 USB \u771f\u673a\u670d\u52a1\uff09\u3002\u4e0d\u5fc5\u91cd\u542f\u6574\u4e2a Eclipse\uff0c\u624b\u5de5\u5173\u518d\u5f00\u5373\u53ef\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">adb kill-server\nadb start-server<\/code><\/pre>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">2. \u67e5\u8be2\u5f53\u524d\u8bbe\u5907<\/h3>\n<p style=\"margin: 1em 0px;\">\u591a\u6a21\u62df\u5668\u6216\u6a21\u62df\u5668\u52a0\u771f\u673a\u540c\u65f6\u5728\u7ebf\u65f6\uff0c\u7528 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">adb devices<\/code> \u5217\u51fa\u5b9e\u4f8b\u3002\u8fd0\u884c\u7a0b\u5e8f\u65f6\u4f1a\u5f39\u51fa\u9009\u62e9\u6846\uff0c\u9009\u771f\u673a\u5219 ADT \u76f4\u63a5\u88c5\u5230\u624b\u673a\u4e0a\u3002<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">adb devices<\/code><\/pre>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">3. \u5b89\u88c5\u3001\u5378\u8f7d\u548c\u8fd0\u884c<\/h3>\n<p style=\"margin: 1em 0px;\">Eclipse \u8dd1\u5de5\u7a0b\u9700\u8981\u6e90\u7801\uff1b\u53ea\u6709 apk \u65f6\u7528 adb\u3002package \u662f\u5e94\u7528\u552f\u4e00\u6807\u8bc6\u3002\u5df2\u5b89\u88c5\u5219\u5148\u5378\u8f7d\u518d\u88c5\uff0c\u6216\u7528\u91cd\u65b0\u5b89\u88c5\u547d\u4ee4\u3002<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">adb install ebook.apk\nadb uninstall net.blogjava.mobile.ebook<\/code><\/pre>\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\"><strong>\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1a\u65ad\u5f00\u591a\u534a\u662f 5037 \u88ab\u5360\uff1bnetstat \u627e PID\uff0ctaskkill \u6740\u6389\u540e\u518d adb start-server\u3002<\/strong><\/p>\n<\/blockquote>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u5f00\u53d1\u65f6\u6a21\u62df\u5668\u6216\u771f\u673a\u7ecf\u5e38\u548c IDE \u65ad\u5f00\u3002\u591a\u6570\u60c5\u51b5\u662f adb \u7684 5037 \u7aef\u53e3\u88ab\u5360\u7528\u3002Eclipse \u53ef\u5728 D [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[194,12],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1012"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1012"}],"version-history":[{"count":3,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1012\/revisions"}],"predecessor-version":[{"id":1020,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1012\/revisions\/1020"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}