{"id":171,"date":"2023-05-18T12:05:29","date_gmt":"2023-05-18T04:05:29","guid":{"rendered":"https:\/\/app.60day.cn\/appday\/?p=171"},"modified":"2023-05-18T12:05:29","modified_gmt":"2023-05-18T04:05:29","slug":"flutter-%e6%89%93%e5%8c%85aab%e6%9c%89%e4%bb%80%e4%b9%88%e4%bc%98%e5%8a%bf%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/app.60day.cn\/appday\/kaifaapp\/171\/","title":{"rendered":"flutter \u6253\u5305aab\u6709\u4ec0\u4e48\u4f18\u52bf\uff1f"},"content":{"rendered":"<p>Flutter\u662f\u4e00\u79cd\u6d41\u884c\u7684\u8de8\u5e73\u53f0\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u6846\u67b6\uff0c\u53ef\u4ee5\u4f7f\u7528Dart\u8bed\u8a00\u7f16\u5199\u5e94\u7528\u7a0b\u5e8f\u3002Flutter\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u6253\u5305\u4e3aAPK\u6216AAB\u683c\u5f0f\uff0c\u5176\u4e2dAAB\u662fAndroid\u5e94\u7528\u7a0b\u5e8f\u6346\u7ed1\u5305\u7684\u4e00\u79cd\u65b0\u683c\u5f0f\uff0c\u5b83\u53ef\u4ee5\u5728Google Play\u5546\u5e97\u4e0a\u53d1\u5e03\u3002<\/p>\n<p>AAB\u683c\u5f0f\u662fGoogle Play\u5546\u5e97\u63a8\u51fa\u7684\u4e00\u79cd\u65b0\u7684\u5e94\u7528\u7a0b\u5e8f\u683c\u5f0f\uff0c\u5b83\u53ef\u4ee5\u4f18\u5316\u5e94\u7528\u7a0b\u5e8f\u4e0b\u8f7d\u548c\u5b89\u88c5\u7684\u8fc7\u7a0b\u3002AAB\u6587\u4ef6\u5305\u542b\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u672c\u4ee3\u7801\u548c\u8d44\u6e90\uff0c\u4f46\u4e0d\u5305\u62ec\u6240\u6709\u5e94\u7528\u7a0b\u5e8f\u7684\u8d44\u6e90\u3002\u76f8\u53cd\uff0cAAB\u6587\u4ef6\u5305\u542b\u4e00\u4e2a\u8d44\u6e90\u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u5305\u542b\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u8d44\u6e90\uff0c\u5e76\u4e14\u53ea\u6709\u5728\u7528\u6237\u4e0b\u8f7d\u548c\u5b89\u88c5\u5e94\u7528\u7a0b\u5e8f\u65f6\u624d\u4f1a\u4e0b\u8f7d\u3002<\/p>\n<p>\u8981\u5c06Flutter\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u4e3aAAB\u683c\u5f0f\uff0c\u9700\u8981\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<p>1.\u5c06Flutter\u5e94\u7528\u7a0b\u5e8f\u6784\u5efa\u4e3arelease\u6a21\u5f0f\u3002\u5728\u7ec8\u7aef\u4e2d\uff0c\u5bfc\u822a\u5230Flutter\u5e94\u7528\u7a0b\u5e8f\u7684\u6839\u76ee\u5f55\uff0c\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.cdn.yimenapp.com\/2023-03\/31\/15\/07998885480.jpg\" \/><\/figure>\n<\/p>\n<p>\u4ee4\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>flutter build appbundle<\/p>\n<p>&#8220;`<\/p>\n<p>\u8be5\u547d\u4ee4\u5c06\u6784\u5efaFlutter\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u5c06\u5176\u6253\u5305\u4e3aAAB\u6587\u4ef6\u3002<\/p>\n<p>2.\u7b7e\u7f72AAB\u6587\u4ef6\u3002\u5728\u6784\u5efaAAB\u6587\u4ef6\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u7b7e\u7f72AAB\u6587\u4ef6\u4ee5\u4f7f<a href=\"https:\/\/www.yimenapp.net\/dabao-2248.html\">\u82f9\u679c\u624b\u673aios\u5e94\u7528\u5305<\/a>\u5176\u53ef\u5728Google Play\u5546\u5e97\u4e0a\u53d1\u5e03\u3002\u4e3a\u6b64\uff0c\u60a8\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u5bc6\u94a5\u5e93\u6587\u4ef6\u548c\u4e00\u4e2a\u7b7e\u540d\u6587\u4ef6\u3002\u5728\u7ec8\u7aef\u4e2d\uff0c\u5bfc\u822a\u5230\u5bc6\u94a5\u5e93\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff0c\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>keytool -genkey -v -keystore .jks -keyalg RSA -keysize 2048 -validity 10000 -alias <\/p>\n<p><p>&#8220;`<\/p>\n<p>\u8be5\u547d\u4ee4\u5c06\u521b\u5efa\u4e00\u4e2a\u5bc6\u94a5\u5e93\u6587\u4ef6\u548c\u4e00\u4e2a\u7b7e\u540d\u6587\u4ef6\u3002\u60a8\u9700\u8981\u5c06\u6b64\u6587\u4ef6\u4fdd\u5b58\u5230Flutter\u5e94\u7528\u7a0b\u5e8f\u7684\u6839\u76ee\u5f55\u4e2d\u3002<\/p>\n<p>3.\u914d\u7f6eFlutter\u5e94\u7528\u7a0b\u5e8f\u7684\u6784\u5efa\u6587\u4ef6\u3002\u5728Flutter\u5e94\u7528\u7a0b\u5e8f\u7684\u6839\u76ee\u5f55\u4e2d\uff0c\u6253\u5f00\u201candroid\/app\/build.gradle\u201d\u6587\u4ef6\uff0c\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>android {<\/p>\n<p>    &#8230;<\/p>\n<p>    defaultConfig {<\/p>\n<p>        &#8230;<\/p>\n<p>        minSdkVersion 21<\/p>\n<p>        &#8230;<\/p>\n<p>    }<\/p>\n<p>    &#8230;<\/p>\n<p>    signingConfigs {<\/p>\n<p>        release {<\/p>\n<p>            keyAlias &#8221;<\/p>\n<p><p>            keyPassword &#8221;<\/p>\n<p><p>            storeFile file(&#8216;.jks&#8217;)<\/p>\n<p><p>            storePassword &#8221;<\/p>\n<p><p>        }<\/p>\n<p>    }<\/p>\n<p>    buildTypes {<\/p>\n<p>        release {<\/p>\n<p>            &#8230;<\/p>\n<p>            signingConfig signingConfigs.release<\/p>\n<p>            &#8230;<\/p>\n<p>        }<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p>&#8220;`<\/p>\n<p>\u8fd9\u5c06\u914d\u7f6e\u7b7e\u540d\u6587\u4ef6\u4ee5\u7528\u4e8eAAB\u6587\u4ef6\u7684\u7b7e\u540d\u3002<\/p>\n<p>4.\u6784\u5efaAAB\u6587\u4ef6\u3002\u5728\u7ec8\u7aef\u4e2d\uff0c\u5bfc\u822a\u5230Flutter\u5e94\u7528\u7a0b\u5e8f\u7684\u6839\u76ee\u5f55\uff0c\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>flutter build appbundle &#8211;target-platform android-arm,android-arm64,android-x64<\/p>\n<p>&#8220;`<\/p>\n<p>\u8be5\u547d\u4ee4\u5c06\u6784\u5efaFlutter\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u5c06\u5176\u6253\u5305\u4e3aAAB\u6587\u4ef6\u3002<\/p>\n<p>5.\u4e0a\u4f20AAB\u6587\u4ef6\u3002\u5728Google Play\u5f00\u53d1\u8005\u63a7\u5236\u53f0\u4e2d\uff0c\u9009\u62e9\u201c\u53d1\u5e03\u7ba1\u7406\u201d&gt;\u201c\u5185\u90e8\u6d4b\u8bd5\u201d&gt;\u201c\u521b\u5efa\u7248\u672c\u201d&gt;\u201c\u5e94\u7528\u7a0b\u5e8f\u5305\u201d\uff0c\u5e76\u4e0a\u4f20AAB\u6587\u4ef6\u3002\u5b8c\u6210\u4e0a\u4f20\u540e\uff0c\u60a8\u53ef\u4ee5\u5f00\u59cb\u5185\u90e8\u6d4b\u8bd5\u6216\u5c06\u5e94\u7528\u7a0b\u5e8f\u53d1\u5e03\u5230Goo<a href=\"https:\/\/www.yimenapp.net\/dabao-165.html\">\u6253\u5305app<\/a>gle Play\u5546\u5e97\u3002<\/p>\n<p>\u603b\u4e4b\uff0c\u5c06Flutter\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u4e3aAAB\u683c\u5f0f\u9700\u8981\u9075\u5faa\u4e00\u4e9b\u7b80\u5355\u7684\u6b65\u9aa4\uff0c\u5305\u62ec\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\uff0c\u7b7e\u7f72AAB\u6587\u4ef6\uff0c\u5e76\u4e0a\u4f20\u5230Google Play\u5546\u5e97\u3002\u8fd9\u5c06\u4f18\u5316\u5e94\u7528\u7a0b\u5e8f\u4e0b\u8f7d\u548c\u5b89\u88c5\u7684\u8fc7\u7a0b\uff0c\u5e76\u4e3a\u7528\u6237\u63d0\u4f9b\u66f4\u597d\u7684\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flutter\u662f\u4e00\u79cd\u6d41\u884c\u7684\u8de8\u5e73\u53f0\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u6846\u67b6\uff0c\u53ef\u4ee5\u4f7f\u7528Dart\u8bed\u8a00\u7f16\u5199\u5e94\u7528\u7a0b\u5e8f\u3002Flutter\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u6253\u5305\u4e3aAPK\u6216AAB\u683c\u5f0f\uff0c\u5176\u4e2dAAB\u662fAndroid\u5e94\u7528\u7a0b\u5e8f\u6346\u7ed1\u5305\u7684\u4e00\u79cd\u65b0\u683c\u5f0f\uff0c\u5b83\u53ef<\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[433,84,432,132,434],"topic":[],"class_list":["post-171","post","type-post","status-publish","format-standard","hentry","category-kaifaapp","tag-ios-push-p8","tag-84","tag-app","tag-132","tag-434"],"_links":{"self":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts\/171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/comments?post=171"}],"version-history":[{"count":0,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts\/171\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/media?parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/categories?post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/tags?post=171"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/topic?post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}