{"id":1225,"date":"2023-03-18T09:12:36","date_gmt":"2023-03-18T01:12:36","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1225"},"modified":"2023-04-29T09:36:26","modified_gmt":"2023-04-29T01:36:26","slug":"atlas-dex-subcontracting-configuration","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/18\/atlas-dex-subcontracting-configuration\/","title":{"rendered":"Atlas Dex\u5206\u5305\u914d\u7f6e"},"content":{"rendered":"<p>Dex\u5206\u5305\u53ea\u5bf9Host\u751f\u6548\uff0c\u5bf9Bundle\u4e0d\u751f\u6548\u3002\u4e5f\u5c31\u662f\u5728Bundle\u5185\u4e0d\u80fd\u505aDex\u5206\u5305\u5904\u7406\uff0c\u82e5\u65b9\u6cd5\u6570\u8d85\u8fc765536\uff0c\u53ea\u80fd\u62c6\u5206Bundle\u3002<\/p>\n<pre><code class=\"language-java\">android {\n    defaultConfig {\n        multiDexEnabled true\n    }\n}\n\natlas {\n    atlasEnabled true\n    tBuildConfig {\n        atlasMultiDex true\n    }\n}<\/code><\/pre>\n<p><!-- more --><\/p>\n<p>\u5982\u6ca1\u6709\u914d\u7f6e<code>multiDexEnabled true<\/code>\uff0c\u5219\u62a5\u9519\uff1a<\/p>\n<pre><code>Execution failed for task &#039;:app:transformClassesWithDexForDebug&#039;.\n> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com\n.android.dex.DexIndexOverflowException: field ID not in [0, 0xffff]: 65536<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Dex\u5206\u5305\u53ea\u5bf9Host\u751f\u6548\uff0c\u5bf9Bundle\u4e0d\u751f\u6548\u3002\u4e5f\u5c31\u662f\u5728Bundle\u5185\u4e0d\u80fd\u505aDex\u5206\u5305\u5904\u7406\uff0c\u82e5\u65b9\u6cd5\u6570\u8d85\u8fc765 [&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-1225","post","type-post","status-publish","format-standard","hentry","category-atlas"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1225","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=1225"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1225\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}