gpt4 book ai didi

android - Unity 2019 - 无法启用 MultiDex 支持

转载 作者:行者123 更新时间:2023-12-05 00:04:44 25 4
gpt4 key购买 nike

我正在尝试在 Unity 2019.4.0 上构建,但失败了

Cannot fit requested classes in a single dex file (# methods: 68231 > 65536)

解决方案是启用 multiDex 我已经按照以下步骤完成了

Information
external-dependency-manager Version 1.2.156
Jetifier is Enabled
Min API Level 19
Target API Level 28

自定义 Gradle 模板已启用,我在其中添加了以下内容

Android Manifest Application Tag add the following in the tag
android:name="androidx.multidex.MultiDexApplication"
Enable custom gradle template from Player Settings
then in mainTemplate.gradle add in dependencies
implementation 'com.android.support:multidex:1.0.1'
and in DefaultConfig add
multiDexEnabled true

我已按照上述步骤操作,但在同样的问题上构建失败了

Cannot fit requested classes in a single dex file (# methods: 68231 > 65536)

需要帮助,似乎自定义 gradle 文件根本不起作用。希望能尽快在这里找到解决方案。

最佳答案

您不能像以前一样在 2019.4 中启用 multidex: https://forum.unity.com/threads/cant-build-with-multidex-enabled.773348/

关于android - Unity 2019 - 无法启用 MultiDex 支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62469490/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com