From 47dfa3614abfc1532fc33a612b4d4e1cb23e90a8 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期五, 25 十月 2024 11:47:10 +0800 Subject: [PATCH] 2024年10月25日11:46:51 --- build.gradle | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/build.gradle b/build.gradle index 05c8bec..701432e 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. - +apply from:"config.gradle" buildscript { repositories { @@ -52,4 +52,17 @@ task clean(type: Delete) { delete rootProject.buildDir +} + +// 淇濊瘉dex_files鏂囦欢涓寚瀹氱殑鏂囦欢閮藉姞杞藉埌Main Dex涓� +afterEvaluate { + tasks.matching { + it.name.startsWith('dex') + }.each { dx -> + if (dx.additionalParameters == null) { + dx.additionalParameters = [] + } + dx.additionalParameters += '--multi-dex' + dx.additionalParameters += "--main-dex-list=$projectDir/dex_files".toString() + } } \ No newline at end of file -- Gitblit v1.8.0