{"id":42,"date":"2022-12-01T22:38:27","date_gmt":"2022-12-01T14:38:27","guid":{"rendered":"http:\/\/codermr.com\/?p=42"},"modified":"2025-01-15T23:31:17","modified_gmt":"2025-01-15T15:31:17","slug":"android_xml_config","status":"publish","type":"post","link":"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/","title":{"rendered":"\u5b89\u5353\u5f00\u53d1-\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3"},"content":{"rendered":"\n<p>\u6700\u8fd1\u5728\u5b66\u4e60 Android \u5f00\u53d1\uff0c\u4f7f\u7528 Android Studio \u505a\u5b89\u5353\u5f00\u53d1\u4e00\u822c\u4f1a\u6d89\u53ca\u5230\u4e0b\u9762\u51e0\u4e2a\u6587\u4ef6\uff0c\u5982\u4e0b\u6211\u9010\u4e00\u6807\u4e86\u6570\u5b57\uff0c\u7136\u540e\u8fdb\u884c\u8be6\u7ec6\u7684\u8bf4\u660e\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-3.png\" alt=\"\" class=\"wp-image-48\" width=\"288\" height=\"437\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-3.png 576w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-3-198x300.png 198w\" sizes=\"(max-width: 288px) 100vw, 288px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">1\u5904<\/h2>\n\n\n\n<p>.gradle \u548c .idea \u76ee\u5f55\u662f AS \u8fd9\u4e2a IDE \u81ea\u52a8\u751f\u6210\u7684\u6587\u4ef6\uff0c\u6211\u4eec\u4e0d\u7528\u4e0d\u7ba1\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2\u5904<\/h2>\n\n\n\n<p>\u6700\u5916\u5c42\u76ee\u5f55\u4e0b\u7684 setting.gradle \u6587\u4ef6<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u7528\u4e8e\u914d\u7f6e\u5b50\u5de5\u7a0b\uff08\u4e5f\u53ef\u4ee5\u8bf4\u662f Module \uff09\uff0c\u65b0\u521b\u5efa\u7a7a\u9879\u76ee\uff0csetting.gradle \u6587\u4ef6\u53ea\u6709\u4e00\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">include ':app'<\/pre>\n\n\n\n<p>\u5982\u679c\u662f\u591a\u4e2a\u5b50\u6a21\u5757\uff0c\u5219\u662f\u7c7b\u4f3c\u4e8e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">include ':demo1app', ':demo2app'<\/pre>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">3\u5904<\/h2>\n\n\n\n<p>\u6700\u5916\u5c42\u76ee\u5f55\u4e0b local.properties \u6587\u4ef6<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u7528\u4e8e\u6307\u5b9a\u672c\u673a\u4e2d Android SDK \u7684\u8def\u5f84\uff0c\u901a\u5e38\u662f\u5185\u90e8\u751f\u6210\u7684\uff0c\u6211\u4eec\u5e76\u4e0d\u9700\u8981\u4fee\u6539\uff0c\u9664\u975e\u4f60\u672c\u673a\u7684 Android SDK \u8def\u5f84\u53d1\u751f\u4e86\u53d8\u5316\u3002<\/p>\n\n\n\n<p>\u6bd4\u5982\u6211\u7684 Mac \u4e0a\u8be5\u6587\u4ef6\u5185\u5bb9\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sdk.dir=\/Users\/codermr\/Library\/Android\/sdk<\/pre>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">4\u5904<\/h2>\n\n\n\n<p>\u6700\u5916\u5c42\u76ee\u5f55\u4e0b gradle.properties \u6587\u4ef6<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u4e2a\u6587\u4ef6\u662f\u5168\u5c40\u7684 gradle \u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n\n\n\n<p>\u6211\u7684 Mac \u4e0a\u8be5\u6587\u4ef6\u53ea\u6709\u4e00\u884c\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">org.gradle.jvmargs=-Xmx1536m<\/pre>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">5\u5904<\/h2>\n\n\n\n<p>\u6700\u5916\u5c42\u76ee\u5f55\u4e0b build.gradle \u6587\u4ef6<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u4e2a\u662f\u9879\u76ee\u5168\u5c40\u7684 gradle \u6784\u5efa\u811a\u672c\u3002\u4f1a\u914d\u7f6e <strong>gradle \u811a\u672c<\/strong>\u6267\u884c\u6240\u9700\u8981\u7684<strong>\u4f9d\u8d56\u5e93<\/strong>\u548c<strong>\u9879\u76ee\u672c\u8eab<\/strong>\u6240\u9700\u8981\u7684<strong>\u4f9d\u8d56\u5e93<\/strong>\u3002<\/p>\n\n\n\n<p><\/p>\n<\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/buildscript{}\u95ed\u5305\u91cc\u662f\u2588gradle\u811a\u672c\u2588\u6267\u884c\u6240\u9700\u4f9d\u8d56\uff0c\u5206\u522b\u662f\u5bf9\u5e94\u7684maven\u5e93\u548c\u63d2\u4ef6\u3002\nbuildscript {\n      repositories {\n          jcenter()\n      }\n      dependencies {\n          classpath 'com.android.tools.build:gradle:2.2.0'\/\/gradle\u63d2\u4ef6\u7248\u672c\n      }\n  }\n\/\/ \u2588allprojects{}\u95ed\u5305\u91cc\u662f\u2588\u9879\u76ee\u672c\u8eab\u2588\u9700\u8981\u7684\u4f9d\u8d56\uff0c\u6bd4\u5982\u9879\u76ee\u6240\u9700\u7684maven\u5e93\u3002\nallprojects {\n      repositories {\n          jcenter()\n          }\n }\n\/\/\u2588\u8fd0\u884cgradle clean\u65f6\uff0c\u6267\u884c\u6b64\u5904\u5b9a\u4e49\u7684task\u4efb\u52a1\uff0c\u8be5\u4efb\u52a1\u7ee7\u627f\u81eaDelete\uff0c\u5220\u9664\u6839\u76ee\u5f55\u4e2d\u7684build\u76ee\u5f55\u3002\ntask clean(type: Delete) {\n      delete rootProject.buildDir\n  }<\/code><\/pre>\n\n\n\n<ul>\n<li>buildscript \u91cc\u9762\u662f <strong>gradle \u811a\u672c<\/strong>\u6267\u884c\u6240\u9700\u4f9d\u8d56\uff0c\u5206\u522b\u662f\u5bf9\u5e94\u7684 maven \u5e93\u548c\u63d2\u4ef6\u5e93\u3002<\/li>\n\n\n\n<li>allprojects \u91cc\u9762\u662f<strong>\u9879\u76ee\u672c\u8eab<\/strong>\u9700\u8981\u7684\u4f9d\u8d56\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u5f53\u6211\u4eec\u4e0d\u786e\u5b9a\uff0c\u4e14\u5f15\u5165\u7b2c\u4e09\u65b9\u7684\u65f6\u5019\uff0c\u4e0d\u786e\u5b9a\u662f\u9879\u76ee\u6240\u9700\u4f9d\u8d56\u8fd8\u662f gradle \u811a\u672c\u6267\u884c\u65f6\u6240\u9700\u4f9d\u8d56\u7684\u65f6\u5019\uff0c\u63a8\u8350\u5728 buildscript \u548c allproject \u91cc\u9762\u540c\u65f6\u6dfb\u52a0\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">6\u5904<\/h2>\n\n\n\n<p>gradle\/wrapper \u76ee\u5f55\u4e0b\u7684 gradle-wrapper.jar \u548c gradle-wrapper.properties \u6587\u4ef6<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u201cwrapper\u201d\u987e\u540d\u601d\u4e49\u5c31\u662f\u201c\u5305\u88c5\u201d\u7684\u610f\u601d\uff0c\u5bf9 gradle \u8fdb\u884c\u4e86\u5305\u88c5\u3002<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">gradle-wrapper.jar<\/mark><\/strong> \u662f Gradle Wrapper \u7684\u4e3b\u4f53\u529f\u80fd\u5305\uff0c\u5728Android Studio\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u4ea7\u751f gradle-wrapper.jar\uff08\u9ed8\u8ba4\u5b89\u88c5\u76ee\u5f55<code>C:\\Program Files\\Android\\Android Studio\\plugins\\android\\lib\\templates\\gradle\\wrapper\\gradle\\wrapper\\gradle-wrapper.jar<\/code>\uff09\u3002\u7136\u540e\u6bcf\u6b21\u65b0\u5efa\u9879\u76ee\uff0c\u4f1a\u5c06 gradle-wrapper.jar \u62f7\u8d1d\u5230\u4f60\u7684\u9879\u76ee\u7684 gradle\/wrapper \u76ee\u5f55\u4e2d\u3002<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">gradle-wrapper.properties<\/mark><\/strong> \u6587\u4ef6\u4e3b\u8981<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#3b1598\" class=\"has-inline-color\">\u6307\u5b9a\u4e86\u8be5\u9879\u76ee\u9700\u8981\u4ec0\u4e48\u7248\u672c\u7684 Gradle<\/mark><\/strong>\uff0c\u4ece\u54ea\u91cc\u4e0b\u8f7d\u8be5\u7248\u672c\u7684 Gradle\uff0c\u4e0b\u8f7d\u4e0b\u6765\u653e\u5230\u54ea\u91cc\uff0c\u5982\u4e0b\u662f\u6211 Mac \u4e0a\u7684\u914d\u7f6e\u5185\u5bb9\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-6-1024x187.png\" alt=\"\" class=\"wp-image-83\" width=\"512\" height=\"94\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-6-1024x187.png 1024w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-6-300x55.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-6-768x140.png 768w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-6-816x149.png 816w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-6.png 1216w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><figcaption class=\"wp-element-caption\">gradle-wrapper.properties \u6587\u4ef6<\/figcaption><\/figure>\n\n\n\n<p class=\"has-normal-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">GRADLE_USER_HOME <\/mark><\/strong>\uff1a\u4e00\u822c\u6307 <code>~\/.gradle<\/code><\/p>\n\n\n\n<p class=\"has-normal-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\"><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">zipStoreBase \u548c zipStorePath<\/mark><\/strong> \u7ec4\u5408\u5728\u4e00\u8d77\uff0c\u662f\u4e0b\u8f7d\u7684 gradle-7.4-bin.zip \u6240\u5b58\u653e\u7684\u4f4d\u7f6e\u3002zipStorePath \u662f zipStoreBase \u6307\u5b9a\u7684\u76ee\u5f55\u4e0b\u7684\u5b50\u76ee\u5f55\u3002<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">distributionPath<\/mark><\/strong> \uff1aGRADLE_USER_HOME \u548c distributionPath \u4e00\u8d77\u6307\u5b9a\u4e86\u4e0b\u8f7d\u7684 gradle-7.4-bin.zip \u89e3\u538b\u540e\u7684\u5b58\u653e\u4f4d\u7f6e\uff0c\u5982\u4e0b\u662f\u6211\u7684 Mac \u4e0a\u4f4d\u7f6e\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-7-1024x563.png\" alt=\"\" class=\"wp-image-88\" width=\"512\" height=\"282\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-7-1024x563.png 1024w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-7-300x165.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-7-768x422.png 768w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-7-1536x844.png 1536w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-7-816x449.png 816w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-7.png 1590w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">distributionUrl<\/mark><\/strong> \uff1a\u4f1a\u53bb\u8fd9\u4e2a\u5730\u5740\u4e0b\u8f7d gradle-7.4-bin.zip \u3002<\/p>\n<\/blockquote>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">\u6ce8\u610f\uff1a\u6700\u5916\u5c42\u76ee\u5f55\u4e0b  build.gradle \u6587\u4ef6\u4e2d\u6307\u5b9a\u4e86 gradle \u7684\u63d2\u4ef6\u7248\u672c\uff1a<\/mark><\/em><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-8-1024x464.png\" alt=\"\" class=\"wp-image-93\" width=\"512\" height=\"232\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-8-1024x464.png 1024w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-8-300x136.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-8-768x348.png 768w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-8-1536x695.png 1536w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-8-816x369.png 816w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-8.png 1546w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p><em><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">gradle-wrapper.properties \u6587\u4ef6\u4e2d\u6307\u5b9a\u4e86 gradle \u7684\u7248\u672c\uff1a<\/mark><\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-6-1024x187.png\" alt=\"\" class=\"wp-image-83\" width=\"512\" height=\"94\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-6-1024x187.png 1024w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-6-300x55.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-6-768x140.png 768w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-6-816x149.png 816w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-6.png 1216w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p><em><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">gradle \u7684\u63d2\u4ef6\u7248\u672c\u53f7\u8981\u548cgradle\u7248\u672c\u53f7\u76f8\u5bf9\u5e94\uff1a<\/mark><\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-9.png\" alt=\"\" class=\"wp-image-94\" width=\"352\" height=\"321\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-9.png 469w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-9-300x274.png 300w\" sizes=\"(max-width: 352px) 100vw, 352px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><em>Android Gradle \u63d2\u4ef6\u548c Android Studio \u517c\u5bb9\u6027<\/em><\/strong><\/h3>\n\n\n\n<p>Android Studio \u6784\u5efa\u7cfb\u7edf\u4ee5 Gradle \u4e3a\u57fa\u7840\uff0c\u5e76\u4e14 Android Gradle \u63d2\u4ef6\u6dfb\u52a0\u4e86\u51e0\u9879\u4e13\u7528\u4e8e\u6784\u5efa Android \u5e94\u7528\u7684\u529f\u80fd\u3002\u4e0b\u8868\u5217\u51fa\u4e86\u5404\u4e2a Android Studio \u7248\u672c\u6240\u9700\u7684 Android Gradle \u63d2\u4ef6\u7248\u672c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-10.png\" alt=\"\" class=\"wp-image-95\" width=\"448\" height=\"281\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-10.png 597w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-10-300x188.png 300w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/figure>\n\n\n\n<p><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">\u6bd4\u5982\u6211\u7684 Android Studio \u7248\u672c\u662f 2021.3.1\uff0c\u5982\u679c\u6211\u914d\u7f6e\u7684 gradle \u63d2\u4ef6\u7248\u672c\u592a\u4f4e\uff0cAndroid Studio \u4f1a\u63d0\u793a\u6211\u4fee\u6539\uff1a<\/mark><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"211\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-11-1024x211.png\" alt=\"\" class=\"wp-image-96\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-11-1024x211.png 1024w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-11-300x62.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-11-768x159.png 768w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-11-1536x317.png 1536w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-11-816x168.png 816w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-11.png 2044w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">7\u5904<\/h2>\n\n\n\n<p>app \u76ee\u5f55\u4e0b\u7684 proguard-rules.pro \u6587\u4ef6<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u7528\u4e8e\u914d\u7f6e\u4ee3\u7801\u6df7\u6dc6\u89c4\u5219\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">8\u5904<\/h2>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">app \u76ee\u5f55\u4e0b\u7684 build.gradle \u6587\u4ef6<\/mark><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apply plugin: 'com.android.application' android {\n     compileSdkVersion 24\n     buildToolsVersion \"24.0.2\"\/\/\u2588\u6784\u5efa\u5de5\u5177\u7684\u7248\u672c\u2588\n     defaultConfig {\n         applicationId \"com.example.helloworld\" \/\/\u2588\u9879\u76ee\u5305\u540d\u2588\n         minSdkVersion 15\n         targetSdkVersion 24\n         versionCode 1\n         versionName \"1.0\"\n     }\n     buildTypes {\n         release {\n             minifyEnabled false\n             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\n         }\n     }\n }\n dependencies {\/\/\u2588\u9879\u76ee\u6240\u4f9d\u8d56\u7684jar\u5305\u2588\n     compile fileTree(include: &#91;'*.jar'], dir: 'libs')\n     compile 'com.android.support:appcompat-v7:24.2.1'\n     testCompile 'junit:junit:4.12' } <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">compileSdkVersion<\/h2>\n\n\n\n<p>\u7f16\u8bd1\u5b89\u5353\u6e90\u7801\u6240\u4f7f\u7528\u7684 Android sdk \u7248\u672c\uff0c\u5728\u7f16\u8bd1\u6e90\u7801\u65f6\u4f1a\u4ece\u8be5\u7ea7\u522b SDK \u4e2d\u5bfb\u627e\u8981\u5bfc\u5165\u7684\u7c7b\u548c\u51fd\u6570\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">minSdkVersion<\/h2>\n\n\n\n<p>\u5728 AS \u4e2d\u65b0\u5efa\u9879\u76ee\u65f6\u4f1a\u9700\u8981\u6307\u5b9a\u8be5\u7248\u672c\u53f7\u3002\u610f\u601d\u662f\u201c\u9879\u76ee\u6700\u4f4e\u517c\u5bb9\u7684 Android \u7cfb\u7edf\u7248\u672c\u201d\uff0c\u8868\u793a APP \u53ef\u4ee5\u652f\u6301\u7684 Android SDK \u7684\u6700\u65e9\u7248\u672c\uff0c\u5c0f\u4e8e\u8be5\u7248\u672c\u7684 Android \u7cfb\u7edf\u4e0a\u4e0d\u4fdd\u8bc1 APP \u80fd\u6b63\u5e38\u5b89\u88c5\u548c\u8fd0\u884c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">targetSdkVersion<\/h2>\n\n\n\n<p>\u8be5\u503c\u4f1a\u544a\u8bc9\u5b89\u5353\u5e94\u7528\u662f\u4e3a\u54ea\u4e2aAPI\u7ea7\u522b\u8bbe\u8ba1\u7684\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>targetSdkVersion\u6307\u5b9a\u7684\u503c\u8868\u793a\u4f60\u5728\u8be5\u76ee\u6807\u7248\u672c\u4e0a\u5df2\u7ecf\u505a\u8fc7\u4e86\u5145\u5206\u7684\u6d4b\u8bd5,\u7cfb\u7edf\u5c06\u4f1a\u4e3a\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u542f\u7528\u4e00\u4e9b\u6700\u65b0\u7684\u529f\u80fd\u548c\u7279\u5f81\u3002\u6bd4\u5982, Android 6.0 \u7cfb\u7edf\u5f15\u7528\u4e86\u8fd0\u884c\u65f6\u6743\u9650\u8fd9\u4e2a\u529f\u80fd,\u5982\u679c\u4f60\u5c06targetSdkVersion \u6307\u5b9a\u4e3a23\u6216\u8005\u66f4\u9ad8,\u90a3\u4e48\u7cfb\u7edf\u5c31\u4f1a\u4e3a\u4f60\u7684\u7a0b\u5e8f\u542f\u52a8\u8fd0\u884c\u65f6\u6743\u9650\u3002\u5982\u679c\u4f60\u5c06 targetSdkVersion \u6307\u5b9a\u4e3a22,\u90a3\u4e48\u5c31\u8bf4\u660e\u4f60\u7684\u7a0b\u5e8f\u6700\u9ad8\u53ea\u5728 Android 5.1\u7cfb\u7edf\u4e0a\u505a\u8fc7\u5145\u5206\u7684\u6d4b\u8bd5,Android6.0\u7cfb\u7edf\u4e2d\u5f15\u5165\u7684\u65b0\u529f\u80fd\u5c31\u4e0d\u4f1a\u542f\u52a8\u4e86\u3002<\/p>\n\n\n\n<p>\u8bf4\u901a\u4fd7\u4e00\u70b9:\u6bd4\u5982\u4f60\u5c06 targetSdkVersion \u8bbe\u7f6e\u4e3a22,\u6d89\u53ca\u67d0\u4e2a(\u6216\u67d0\u51e0\u4e2a)\u6743\u9650,\u4f60\u76f4\u63a5\u5728 mainfest\u4e2d\u914d\u7f6e\u6743\u9650\u5373\u53ef,\u7136\u540e\u5728java\u4ee3\u7801\u4e2d\u8fdb\u884c\u83b7\u53d6\u6743\u9650\u540e\u7684\u903b\u8f91\u5904\u7406\u5373\u53ef\u3002<br>\u4f46\u5982\u679c\u4f60\u5c06 targetSdkVersion \u8bbe\u7f6e\u4e3a23\u6216\u66f4\u9ad8,\u4f60\u9664\u4e86\u5728 mainfest \u4e2d\u914d\u7f6e\u6743\u9650\u5916,\u8fd8\u9700\u8981\u5728 java \u4ee3\u7801\u4e2d\u5224\u65ad\u7528\u6237\u662f\u5426\u540c\u610f\u6743\u9650,\u5982\u679c\u540c\u610f,\u6267\u884c\u4ec0\u4e48\u4e1a\u52a1\u64cd\u4f5c;\u5982\u679c\u4e0d\u540c\u610f,\u6267\u884c\u4ec0\u4e48\u4e1a\u52a1\u64cd\u4f5c(\u4e00\u822c\u662f\u63d0\u793a\u67d0\u67d0\u6743\u9650\u88ab\u62d2\u540e,\u67d0\u67d0\u529f\u80fd\u65e0\u6cd5\u6b63\u5e38\u4f7f\u7528).\u5982\u679c\u4f60\u53ea\u5728mainfest\u4e2d\u914d\u7f6e\u4e86\u6743\u9650, targetSdkVersion \u53c8\u5927\u4e8e\u7b49\u4e8e23, Java\u4ee3\u7801\u4e2d\u4e0d\u8fdb\u884c\u8fd0\u884c\u65f6\u6743\u9650\u7684\u4ee3\u7801,\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u5c31\u76f4\u63a5\u62a5\u9519\u4e86\u3002<\/p>\n\n\n\n<p>\u8bf7\u4e00\u5b9a\u5728\u66f4\u65b0  targetSdkVersion \u4e4b\u524d\u505a\u6d4b\u8bd5\uff01\u5c24\u5176\u662f\u56fd\u4ea7\u624b\u673a\u5404\u79cd\u5382\u5546\u5b9a\u5236\u3002\u5e76\u4e14\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d,\u8fd8\u6709\u4e00\u79cd\u53ef\u80fd,\u4ea7\u54c1\u7ecf\u7406\u8981\u6c42\u4f60\u5728\u8fd0\u884c\u65f6\u6743\u9650\u8fd9\u91cc\u6709\u8fd9\u6837\u7684\u9700\u6c42:\u7528\u6237\u62d2\u7edd\u67d0\u9879\u6743\u9650\u540e,\u53ef\u4ee5\u76f4\u63a5\u8df3\u5230\u4fee\u6539\u6743\u9650\u7684\u754c\u9762(\u5373\u8bbe\u7f6e\/\u6743\u9650\u7ba1\u7406\u8fd9\u91cc),\u6216\u8005\u7528\u6237\u7b2c\u4e00\u6b21\u62d2\u7edd\u540e,\u7528\u6237\u7b2c\u4e8c\u6b21\u64cd\u4f5c\u8fd9\u4e2a\u6309\u94ae\u6216\u754c\u9762\u65f6,\u518d\u6b21\u51fa\u73b0\u6743\u9650\u7684\u63d0\u793a\u3002<br><br>\u672c\u5f15\u7528\u6765\u81ea https:\/\/blog.csdn.net\/gaolh89\/article\/details\/79809034<\/p>\n<\/blockquote>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0);color:#2e14e5\" class=\"has-inline-color\">\u4e00\u822c\u6765\u8bf4 compileSdkVersion \u548c targetSdkVersion \u914d\u7f6e\u503c\u662f\u4e00\u6837\u7684\u3002<\/mark><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u65b0\u7248 AS \u914d\u7f6e\u53d8\u5316<\/h2>\n\n\n\n<p>\uff081\uff09\u5c06\u6700\u5916\u5c42 <strong>build.gradle<\/strong> \u4e2d\u7684<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\"> <strong>buildscript<\/strong> \u548c <strong>allprojects<\/strong><\/mark> \u79fb\u52a8\u81f3 <strong>setting.gradle<\/strong> \u5e76\u6539\u540d\u4e3a <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">pluginManagement \u548c dependencyResolutionManagement<\/mark><\/strong> \u3002\u91cc\u9762\u7684\u4e1c\u897f\u4f9d\u65e7\u53ef\u4ee5\u6309\u7167\u539f\u6765\u7684 copy \u8fc7\u6765\u3002<\/p>\n\n\n\n<p>\uff082\uff09\u5c06\u6700\u5916\u5c42 <strong>build.gradle<\/strong> \u4e2d\u7684 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">dependencies<\/mark><\/strong> \u4fee\u6539\u4e3a plugins\uff0c\u66ff\u4ee3\u4e86\u5f15\u7528\u539f\u6765\u7684 Gradle \u7248\u672c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"430\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-5-1024x430.png\" alt=\"\" class=\"wp-image-78\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-5-1024x430.png 1024w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-5-300x126.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-5-768x322.png 768w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-5-1536x644.png 1536w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-5-816x342.png 816w, http:\/\/codermr.com\/wp-content\/uploads\/2022\/12\/image-5.png 1778w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\uff083\uff09setting.gralde \u4e2d\u589e\u52a0\u4e86 <strong>rootProject.name<\/strong> = &#8220;xxx&#8221; \u914d\u7f6e\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u5b8c\u3002<\/h1>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728\u5b66\u4e60 Android \u5f00\u53d1\uff0c\u4f7f\u7528 Android Studio \u505a\u5b89\u5353\u5f00\u53d1\u4e00\u822c\u4f1a\u6d89\u53ca\u5230\u4e0b\u9762\u51e0\u4e2a\u6587\u4ef6\uff0c\u5982\u4e0b&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1380,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[18],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5b89\u5353\u5f00\u53d1-\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3 - \u7801\u5148\u751f\u7684\u535a\u5ba2<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5b89\u5353\u5f00\u53d1-\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3 - \u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"\u6700\u8fd1\u5728\u5b66\u4e60 Android \u5f00\u53d1\uff0c\u4f7f\u7528 Android Studio \u505a\u5b89\u5353\u5f00\u53d1\u4e00\u822c\u4f1a\u6d89\u53ca\u5230\u4e0b\u9762\u51e0\u4e2a\u6587\u4ef6\uff0c\u5982\u4e0b...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-01T14:38:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-15T15:31:17+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/01\/android1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"647\" \/>\n\t<meta property=\"og:image:height\" content=\"484\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u7801\u5148\u751f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/mrcode2021\" \/>\n<meta name=\"twitter:site\" content=\"@mrcode2021\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u7801\u5148\u751f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/\"},\"author\":{\"name\":\"\u7801\u5148\u751f\",\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"headline\":\"\u5b89\u5353\u5f00\u53d1-\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3\",\"datePublished\":\"2022-12-01T14:38:27+00:00\",\"dateModified\":\"2025-01-15T15:31:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/\"},\"wordCount\":177,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"keywords\":[\"android\"],\"articleSection\":[\"Android\u7f16\u7a0b\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/\",\"url\":\"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/\",\"name\":\"\u5b89\u5353\u5f00\u53d1-\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3 - \u7801\u5148\u751f\u7684\u535a\u5ba2\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/#website\"},\"datePublished\":\"2022-12-01T14:38:27+00:00\",\"dateModified\":\"2025-01-15T15:31:17+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/codermr.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5b89\u5353\u5f00\u53d1-\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/codermr.com\/#website\",\"url\":\"http:\/\/codermr.com\/\",\"name\":\"\u7801\u5148\u751f\u7684\u535a\u5ba2\",\"description\":\"\u6b22 \u8fce \u4e0b \u8f7d \u6211 \u5f00 \u53d1 \u7684 \u5404 \u7aef \u8f6f \u4ef6 \u548c APP\",\"publisher\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/codermr.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\",\"name\":\"\u7801\u5148\u751f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg\",\"contentUrl\":\"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg\",\"width\":400,\"height\":400,\"caption\":\"\u7801\u5148\u751f\"},\"logo\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/codermr.com\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/mrcode2021\"],\"url\":\"http:\/\/codermr.com\/index.php\/author\/coderma\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5b89\u5353\u5f00\u53d1-\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3 - \u7801\u5148\u751f\u7684\u535a\u5ba2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5b89\u5353\u5f00\u53d1-\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3 - \u7801\u5148\u751f\u7684\u535a\u5ba2","og_description":"\u6700\u8fd1\u5728\u5b66\u4e60 Android \u5f00\u53d1\uff0c\u4f7f\u7528 Android Studio \u505a\u5b89\u5353\u5f00\u53d1\u4e00\u822c\u4f1a\u6d89\u53ca\u5230\u4e0b\u9762\u51e0\u4e2a\u6587\u4ef6\uff0c\u5982\u4e0b...","og_url":"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/","og_site_name":"\u7801\u5148\u751f\u7684\u535a\u5ba2","article_published_time":"2022-12-01T14:38:27+00:00","article_modified_time":"2025-01-15T15:31:17+00:00","og_image":[{"width":647,"height":484,"url":"http:\/\/codermr.com\/wp-content\/uploads\/2025\/01\/android1.jpg","type":"image\/jpeg"}],"author":"\u7801\u5148\u751f","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/mrcode2021","twitter_site":"@mrcode2021","twitter_misc":{"\u4f5c\u8005":"\u7801\u5148\u751f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/#article","isPartOf":{"@id":"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/"},"author":{"name":"\u7801\u5148\u751f","@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"headline":"\u5b89\u5353\u5f00\u53d1-\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3","datePublished":"2022-12-01T14:38:27+00:00","dateModified":"2025-01-15T15:31:17+00:00","mainEntityOfPage":{"@id":"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/"},"wordCount":177,"commentCount":0,"publisher":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"keywords":["android"],"articleSection":["Android\u7f16\u7a0b"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/","url":"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/","name":"\u5b89\u5353\u5f00\u53d1-\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3 - \u7801\u5148\u751f\u7684\u535a\u5ba2","isPartOf":{"@id":"http:\/\/codermr.com\/#website"},"datePublished":"2022-12-01T14:38:27+00:00","dateModified":"2025-01-15T15:31:17+00:00","breadcrumb":{"@id":"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/codermr.com\/index.php\/2022\/12\/01\/android_xml_config\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/codermr.com\/"},{"@type":"ListItem","position":2,"name":"\u5b89\u5353\u5f00\u53d1-\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3"}]},{"@type":"WebSite","@id":"http:\/\/codermr.com\/#website","url":"http:\/\/codermr.com\/","name":"\u7801\u5148\u751f\u7684\u535a\u5ba2","description":"\u6b22 \u8fce \u4e0b \u8f7d \u6211 \u5f00 \u53d1 \u7684 \u5404 \u7aef \u8f6f \u4ef6 \u548c APP","publisher":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/codermr.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf","name":"\u7801\u5148\u751f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/codermr.com\/#\/schema\/person\/image\/","url":"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg","contentUrl":"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg","width":400,"height":400,"caption":"\u7801\u5148\u751f"},"logo":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/codermr.com","https:\/\/twitter.com\/https:\/\/twitter.com\/mrcode2021"],"url":"http:\/\/codermr.com\/index.php\/author\/coderma\/"}]}},"_links":{"self":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/42"}],"collection":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":47,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":853,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/42\/revisions\/853"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/media\/1380"}],"wp:attachment":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}