From a7584d9662df5c9d46a40eb132899cdc64c07ef5 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期一, 01 七月 2024 09:34:56 +0800 Subject: [PATCH] 2024年07月01日09:34:50 --- build.gradle | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/build.gradle b/build.gradle index 05c8bec..15d7362 100644 --- a/build.gradle +++ b/build.gradle @@ -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