{"id":1229,"date":"2023-03-18T09:16:35","date_gmt":"2023-03-18T01:16:35","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1229"},"modified":"2023-04-29T09:35:26","modified_gmt":"2023-04-29T01:35:26","slug":"atlas-config-bundle-packaging-products-to-the-assets-directory","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/18\/atlas-config-bundle-packaging-products-to-the-assets-directory\/","title":{"rendered":"Atlas\u914d\u7f6ebundle\u6253\u5305\u4ea7\u7269\u81f3assets\u76ee\u5f55"},"content":{"rendered":"<p>Atlas\u652f\u6301\u914d\u7f6e\u4e00\u4e2a\u5f00\u5173\uff0c\u5c06\u6240\u6709bundle\u6253\u5305\u5230assets\u76ee\u5f55\u4e0b\u3002\u8fd9\u6837\u5c31\u4e0d\u4f1a\u5bfc\u81f4bundle\u7684apk\u4ea7\u7269\u88ab\u8ba4\u4e3a\u662f\u52a8\u6001\u94fe\u63a5\u5e93so\u3002<\/p>\n<pre><code class=\"language-java\">atlas.tBuildConfig.keepInLibSoNames = null<\/code><\/pre>\n<p><!-- more --><\/p>\n<p>\u9644\uff1aAndroid\u83b7\u53d6\u624b\u673acpu\u67b6\u6784\uff0c\u652f\u6301\u7684\u6307\u4ee4\u96c6<\/p>\n<pre><code class=\"language-java\">String[] abis = new String[]{};\nif (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.LOLLIPOP) {\n    abis = Build.SUPPORTED_ABIS;\n} else {\n    abis = new String[]{Build.CPU_ABI, Build.CPU_ABI2};\n}\nStringBuilder abiStr = new StringBuilder();\nfor (String abi : abis) {\n    abiStr.append(abi);\n    abiStr.append(&#039;, &#039;);\n}\nLog.i(&quot;yezhou&quot;, &quot;\u67b6\u6784: &quot; + abiStr.toString());<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Atlas\u652f\u6301\u914d\u7f6e\u4e00\u4e2a\u5f00\u5173\uff0c\u5c06\u6240\u6709bundle\u6253\u5305\u5230assets\u76ee\u5f55\u4e0b\u3002\u8fd9\u6837\u5c31\u4e0d\u4f1a\u5bfc\u81f4bundle\u7684apk\u4ea7\u7269 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[275],"tags":[],"class_list":["post-1229","post","type-post","status-publish","format-standard","hentry","category-atlas"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1229"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1229\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}