简体   繁体   English

如何为 Android d8.bat 命令行添加 Multidex 支持

[英]How to add Multidex support to Android d8.bat commandline

I'm using Androids d8 compiler from Delphi, and i need to enable MultiDex.我正在使用 Delphi 的 Androids d8 编译器,我需要启用 MultiDex。 In Android Studio you add the following to your Gradle file:在 Android Studio 中,您将以下内容添加到您的 Gradle 文件中:

defaultConfig { minSdkVersion 14 targetSdkVersion 22 multiDexEnabled true } defaultConfig { minSdkVersion 14 targetSdkVersion 22 multiDexEnabled true }

but as i am using Delphi i cannot do that.但是当我使用 Delphi 时,我不能这样做。 How do i turn on MultiDex support to the commandline tool d8.bat?如何打开命令行工具 d8.bat 的 MultiDex 支持?

Turns out it's really simple.事实证明这真的很简单。 Just add this option:只需添加此选项:

    --min-api 21

Why this information is so hard to come by, i don't understand.为什么这些信息很难获得,我不明白。 I hate when people don't document their stuff.我讨厌人们不记录他们的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM