{"id":27261,"date":"2024-05-31T12:56:43","date_gmt":"2024-05-31T04:56:43","guid":{"rendered":"https:\/\/www.zhidianwl.net\/zhidianwl\/?p=27261"},"modified":"2024-05-31T12:56:43","modified_gmt":"2024-05-31T04:56:43","slug":"aab%e6%96%87%e4%bb%b6%e8%bd%acapk%e6%9c%89%e5%93%aa%e4%ba%9b%e6%96%b9%e6%b3%95%e5%91%a2","status":"publish","type":"post","link":"https:\/\/www.zhidianwl.net\/zhidianwl\/2024\/05\/31\/aab%e6%96%87%e4%bb%b6%e8%bd%acapk%e6%9c%89%e5%93%aa%e4%ba%9b%e6%96%b9%e6%b3%95%e5%91%a2\/","title":{"rendered":"aab\u6587\u4ef6\u8f6capk\u6709\u54ea\u4e9b\u65b9\u6cd5\u5462?"},"content":{"rendered":"

aab\u6587\u4ef6\u662fGoogle Play\u53d1\u5e03\u5e94\u7528\u7a0b\u5e8f\u7684\u65b0\u683c\u5f0f\uff0c\u5b83\u662fAndroid\u5e94\u7528\u7a0b\u5e8f\u6346\u7ed1\u548c\u53d1\u5e03\u7684\u6700\u65b0\u65b9\u5f0f\u3002aab\u6587\u4ef6\u53ef\u4ee5\u5305\u542b\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u8d44\u6e90\u548c\u4ee3\u7801\uff0c\u7136\u540e\u5728Google Play\u4e0a\u53d1\u5e03\u3002\u7136\u800c\uff0c\u6709\u65f6\u5019\u6211\u4eec\u9700\u8981\u514d\u5546\u5e97apk<\/a>\u5c06aab\u6587\u4ef6\u8f6c\u6362\u6210apk\u6587\u4ef6\uff0c\u4ee5\u4fbf\u5728\u5176\u4ed6\u5e94\u7528\u5546\u5e97\u6216\u8bbe\u5907\u4e0a\u5b89\u88c5\u548c\u4f7f\u7528\u3002\u672c\u6587\u5c06\u4ecb\u7ecdaab\u6587\u4ef6\u8f6c\u6362\u6210apk\u6587\u4ef6\u7684\u539f\u7406\u548c\u8be6\u7ec6\u6b65\u9aa4\u3002<\/p>\n

## \u539f\u7406\u4ecb\u7ecd<\/p>\n

aab\u6587\u4ef6\u662fAndroid\u5e94\u7528\u6346\u7ed1\u683c\u5f0f\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u8d44\u6e90\u548c\u4ee3\u7801\uff0c\u5305\u62ec\u591a\u4e2a\u5206\u5272\u5305\uff08Split APKs\uff09\u3002\u5f53\u7528\u6237\u4eceGoogle Play\u4e0b\u8f7d\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0cGoogle Play\u4f1a\u6839\u636e\u8bbe\u5907\u7c7b\u578b\u548c\u914d\u7f6e\uff0c\u9009\u62e9\u5408\u9002\u7684\u5206\u5272\u5305\u8fdb\u884c\u4e0b\u8f7d\u548c\u5b89\u88c5\u3002\u56e0\u6b64\uff0caab\u6587\u4ef6\u53ef\u4ee5\u51cf\u5c11\u5e94\u7528\u7a0b\u5e8f\u7684\u4e0b\u8f7d\u5927\u5c0f\u548c\u5b89\u88c5\u65f6\u95f4\u3002<\/p>\n

\u800capk\u6587\u4ef6\u662fAndroid\u5e94\u7528\u7a0b\u5e8f\u7684\u5b89\u88c5\u5305\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u4ee3\u7801\u548c\u8d44\u6e90\u3002apk\u6587\u4ef6\u53ef\u4ee5\u76f4\u63a5\u5728\u8bbe\u5907\u4e0a\u5b89\u88c5\u548c\u4f7f\u7528\uff0c\u800c\u65e0\u9700\u4ece\u5e94\u7528\u5546\u5e97\u4e0b\u8f7d\u3002\u56e0\u6b64\uff0c\u5c06aab\u6587\u4ef6\u8f6c\u6362\u6210apk\u6587\u4ef6\u53ef\u4ee5\u65b9\u4fbf\u5728\u5176\u4ed6\u5e94\u7528\u5546\u5e97\u6216\u8bbe\u5907\u4e0a\u5b89\u88c5\u548c\u4f7f\u7528\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

aab\u6587\u4ef6\u8f6c\u6362\u6210apk\u6587\u4ef6\u7684\u539f\u7406\u662f\u5c06aab\u6587\u4ef6\u4e2d\u7684\u6240\u6709\u5206\u5272\u5305\u5408\u5e76\u6210\u4e00\u4e2aapk\u6587\u4ef6\u3002\u56e0\u6b64\uff0c\u9700\u8981\u4f7f\u7528\u7279\u5b9a\u7684\u5de5\u5177\u548c\u547d\u4ee4\u884c\u6765\u5b9e\u73b0\u8fd9\u4e2a\u8fc7\u7a0b\u3002<\/p>\n

## \u8be6\u7ec6\u6b65\u9aa4<\/p>\n

\u4ee5\u4e0b\u662faab\u6587\u4ef6\u8f6c\u6362\u6210apk\u6587\u4ef6\u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n

1. \u4e0b\u8f7dAndroid SDK<\/p>\n

Android SDK\u5305\u542b\u4e86Android\u5f00\u53d1\u6240\u9700\u7684\u6240\u6709\u5de5\u5177\u548c\u5e93\u3002\u56e0\u6b64\uff0c\u9700\u8981\u4e0b\u8f7d\u548c\u5b89\u88c5Android SDK\u4ee5\u4fbf\u4f7f\u7528\u5176\u4e2d\u7684\u5de5\u5177\u3002<\/p>\n

2. \u6253\u5f00\u7ec8\u7aef\u6216\u547d\u4ee4\u884c\u7a97\u53e3<\/p>\n

aab\u6587\u4ef6\u8f6c\u6362\u6210apk\u6587\u4ef6\u9700\u8981\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u3002\u56e0\u6b64\uff0c\u9700\u8981\u6253\u5f00\u7ec8\u7aef\u6216\u547d\u4ee4\u884c\u7a97\u53e3\u3002<\/p>\n

3. \u5b9a\u4f4d\u5230Android SDK\u76ee\u5f55<\/p>\n

\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5b9a\u4f4d\u5230Android SDK\u76ee\u5f55\uff1a<\/p>\n

“`<\/p>\n

cd \/path\/to\/Android\/sdk<\/p>\n

“`<\/p>\n

\u5176\u4e2d\uff0c\/path\/to\/Android\/sdk\u662fAndroid SDK\u7684\u5b89\u88c5\u8def\u5f84\u3002<\/p>\n

4. \u89e3\u538baab\u6587\u4ef6<\/p>\n

\u5c06aab\u6587\u4ef6\u89e3\u538b\u7f29\u5230\u67d0\u4e2a\u76ee\u5f55\u4e2d\u3002\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u89e3\u538b\u7f29\u5de5\u5177\uff0c\u5982WinRAR\u62167-Zip\u3002<\/p>\n

5. \u5b9a\u4f4d\u5230\u89e3\u538b\u7f29\u76ee\u5f55<\/p>\n

\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5b9a\u4f4d\u5230\u89e3\u538b\u7f29\u76ee\u5f55\uff1a<\/p>\n

“`<\/p>\n

cd \/path\/to\/unzip\/dir<\/p>\n

“`<\/p>\n

\u5176\u4e2d\uff0c\/path\/to\/unzip\/dir\u662faab\u6587\u4ef6\u89e3\u538b\u7f29\u540e\u7684\u76ee\u5f55\u3002<\/p>\n

6. \u5408\u5e76\u5206\u5272\u5305<\/p>\n

\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c<\/p>\n

<\/figure>\n<\/p>\n

\u5408\u5e76\u6240\u6709\u5206\u5272\u5305\uff1a<\/p>\n

“`<\/p>\n

java -jar bundletool.jar buildipa\u6539\u5305\u540d<\/a>-apks –bundle=app.aab –output=app.apks –mode=universal<\/p>\n

“`<\/p>\n

\u5176\u4e2d\uff0capp.aab\u662faab\u6587\u4ef6\u7684\u540d\u79f0\uff0capp.apks\u662f\u751f\u6210\u7684apk\u6587\u4ef6\u7684\u540d\u79f0\u3002<\/p>\n

7. \u5b89\u88c5apk\u6587\u4ef6<\/p>\n

\u5c06\u751f\u6210\u7684apk\u6587\u4ef6\u590d\u5236\u5230\u8bbe\u5907\u4e0a\uff0c\u5e76\u901a\u8fc7\u6587\u4ef6\u7ba1\u7406\u5668\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n

\u603b\u7ed3<\/p>\n

aab\u6587\u4ef6\u8f6c\u6362\u6210apk\u6587\u4ef6\u9700\u8981\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u548c\u7279\u5b9a\u7684\u547d\u4ee4\u3002\u901a\u8fc7\u5c06aab\u6587\u4ef6\u4e2d\u7684\u6240\u6709\u5206\u5272\u5305\u5408\u5e76\u6210\u4e00\u4e2aapk\u6587\u4ef6\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5728\u5176\u4ed6\u5e94\u7528\u5546\u5e97\u6216\u8bbe\u5907\u4e0a\u5b89\u88c5\u548c\u4f7f\u7528\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

aab\u6587\u4ef6\u662fGoogle Play\u53d1\u5e03\u5e94\u7528\u7a0b\u5e8f\u7684\u65b0\u683c\u5f0f\uff0c\u5b83\u662fAndroid\u5e94\u7528\u7a0b\u5e8f\u6346\u7ed1\u548c\u53d1\u5e03\u7684\u6700\u65b0\u65b9\u5f0f\u3002aab\u6587\u4ef6\u53ef\u4ee5\u5305\u542b\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u8d44\u6e90\u548c\u4ee3\u7801\uff0c\u7136\u540e\u5728Google Play\u4e0a\u53d1\u5e03\u3002\u7136\u800c\uff0c\u6709\u65f6\u5019\u6211<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[16367,13251,1620,116,12],"topic":[],"class_list":["post-27261","post","type-post","status-publish","format-standard","hentry","category-kaifaapp","tag-dz","tag-vue3ios","tag-1620","tag-116","tag-12"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/27261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/comments?post=27261"}],"version-history":[{"count":1,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/27261\/revisions"}],"predecessor-version":[{"id":27291,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/27261\/revisions\/27291"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/media?parent=27261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/categories?post=27261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/tags?post=27261"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/topic?post=27261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}