{"id":1034,"date":"2015-12-01T22:46:15","date_gmt":"2015-12-01T14:46:15","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=1034"},"modified":"2026-08-18T12:58:44","modified_gmt":"2026-08-18T04:58:44","slug":"android-studio-%e4%bd%bf%e7%94%a8%e4%b9%8b%e4%ba%8c%e5%88%9b%e5%bb%ba%e4%b8%8e%e5%af%bc%e5%85%a5%e5%b7%a5%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=1034","title":{"rendered":"Android Studio \u4f7f\u7528\u4e4b\u4e8c\u521b\u5efa\u4e0e\u5bfc\u5165\u5de5\u7a0b"},"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;\">\u88c5\u597d Android Studio \u5c31\u53ef\u4ee5\u5efa\u5de5\u7a0b\u4e86\u3002Studio \u548c Eclipse \u7684\u5de5\u7a0b\u6982\u5ff5\u4e0d\u4e00\u6837\uff1aStudio \u7684 <strong>Project<\/strong> \u5bf9\u5e94 Eclipse \u7684 workspace\uff0cStudio \u7684 <strong>Module<\/strong> \u624d\u5bf9\u5e94 Eclipse \u7684 project\u3002\u65b0\u5efa\u5de5\u7a0b\u4f1a\u5f00\u65b0\u7a97\u53e3\uff0cModule \u91cc\u8fd8\u53ef\u4ee5\u6302\u76f8\u5173\u7684\u7b2c\u4e09\u65b9 library\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\u5de5\u7a0b\u6a21\u578b\u4e0e SDK \u7248\u672c<\/span><\/h2>\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;\">Studio<\/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;\">Eclipse<\/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;\">Project \u5de5\u7a0b<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">workspace \u5de5\u4f5c\u7a7a\u95f4<\/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;\">Module<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">project \u5de5\u7a0b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 1em 0px;\">Eclipse \u5411\u5bfc\u53ef\u540c\u65f6\u8bbe\u6700\u5c0f MiniSDK \u548c Compile Sdk\u3002Studio \u5411\u5bfc\u53ea\u80fd\u8bbe\u6700\u5c0f MiniSDK\uff0cCompile Sdk \u9ed8\u8ba4\u7528\u5f53\u524d\u73af\u5883\u6700\u9ad8\u7248\u672c\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/12\/minimusdk.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-1035\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/12\/minimusdk.png\" alt=\"minimusdk\" width=\"538\" height=\"156\" srcset=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/12\/minimusdk.png 697w, https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/12\/minimusdk-678x196.png 678w, https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/12\/minimusdk-528x153.png 528w\" sizes=\"(max-width: 538px) 100vw, 538px\" \/><\/a><\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/12\/compilesdk.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-1036\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/12\/compilesdk.png\" alt=\"compilesdk\" width=\"539\" height=\"244\" srcset=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/12\/compilesdk.png 660w, https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/12\/compilesdk-528x239.png 528w\" sizes=\"(max-width: 539px) 100vw, 539px\" \/><\/a><\/p>\n<p style=\"margin: 1em 0px;\">\u521b\u5efa\u5de5\u7a0b\u540c\u6b65 Gradle \u65f6\u4f1a\u4e0b\u8f7d jcenter \/ maven \u4e2d\u592e\u5e93\u7684 jar\uff0c\u56fd\u5185\u5f80\u5f80\u6bd4\u8f83\u6162\u3002<\/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\u5bfc\u5165 Eclipse \u5de5\u7a0b<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u5148\u5728 Eclipse \u91cc\u628a\u5de5\u7a0b Export \u6210 Gradle \u6587\u4ef6\uff1a<\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/12\/export.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1037\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/12\/export.png\" alt=\"export\" width=\"241\" height=\"69\" \/><\/a><\/p>\n<p style=\"margin: 1em 0px;\">\u518d\u5728 Android Studio \u91cc\u5bfc\u5165\uff1a<\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/12\/QQ\u255c\u256a\u2550\u255d20151201223234.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-1038\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/12\/QQ\u255c\u256a\u2550\u255d20151201223234.png\" alt=\"QQ\u255c\u256a\u2550\u255d20151201223234\" width=\"422\" height=\"60\" \/><\/a><\/p>\n<p style=\"margin: 1em 0px;\">\u5bfc\u5165\u53ef\u80fd\u5f88\u6162\uff1a\u5de5\u7a0b\u6307\u5b9a\u7684 Gradle \u7248\u672c\u672c\u5730\u6ca1\u6709\uff0c\u8981\u4ece\u7f51\u4e0a\u62c9\u3002\u9ed8\u8ba4\u4e0b\u8f7d\u76ee\u5f55\uff1a<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;\">C:\\Users\\Administrator\\.gradle\\wrapper\\dists\\<\/code><\/p>\n<p style=\"margin: 1em 0px;\">\u907f\u514d\u91cd\u4e0b\uff1a\u6253\u5f00\u5de5\u7a0b <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;\">gradle\/wrapper\/gradle-wrapper.properties<\/code>\uff0c\u628a <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;\">distributionUrl<\/code> \u6539\u6210\u672c\u673a\u5df2\u6709\u7248\u672c\uff0c\u4f8b\u5982\u4ece gradle-1.1.2-all.zip \u6539\u6210\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;\">distributionUrl=https\\:\/\/services.gradle.org\/distributions\/gradle-2.8-all.zip<\/code><\/pre>\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;\">\u4e09\u3001\u4ed3\u5e93\u6539\u6210 jcenter<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">Eclipse \u5bfc\u51fa\u9ed8\u8ba4\u8d70 maven \u4e2d\u592e\u5e93\uff0cAndroid Studio \u8d70 jcenter\u3002Studio \u6ca1\u6709 maven \u63d2\u4ef6\u65f6\u8fd8\u4f1a\u53bb\u66f4\u65b0\u4e0b\u8f7d\u3002\u5728 Eclipse \u5de5\u7a0b\u76ee\u5f55\u7684 <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;\">build.gradle<\/code> \u6539\u6210\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;\">buildscript {\n   repositories {\n      jcenter()\n   }\n   dependencies {\n     classpath 'com.android.tools.build:gradle:1.5.0'\n   }\n}<\/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\uff1aStudio \u7684 Project \u76f8\u5f53\u4e8e Eclipse \u5de5\u4f5c\u7a7a\u95f4\uff1b\u5bfc\u5165\u524d\u6539 gradle-wrapper \u7248\u672c\u548c jcenter\uff0c\u5c11\u7b49\u4e00\u6b21\u4e0b\u8f7d\u3002<\/strong><\/p>\n<\/blockquote>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u88c5\u597d Android Studio \u5c31\u53ef\u4ee5\u5efa\u5de5\u7a0b\u4e86\u3002Studio \u548c Eclipse \u7684\u5de5\u7a0b\u6982\u5ff5\u4e0d\u4e00\u6837\uff1aStu [&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\/1034"}],"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=1034"}],"version-history":[{"count":3,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1034\/revisions"}],"predecessor-version":[{"id":1043,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1034\/revisions\/1043"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}