D8: java.lang.IllegalArgumentException
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:app:mergeDexDebug’.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
java.lang.StackOverflowError (no error message)
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 10s
Exception: Gradle task assembleDebug failed with exit code 1
在build.gradle中开启:
defaultConfig {
multiDexEnabled true
}
博客记录了Gradle构建时出现的错误,包括java.lang.IllegalArgumentException和java.lang.StackOverflowError,构建失败并给出了相关提示。同时提供了解决办法,即在build.gradle中开启multiDexEnabled true。
938

被折叠的 条评论
为什么被折叠?



