Skip to content

Bug Report #1236

Description

@ar-telmid

Bug Report: Dex merge failed (Argument list too long & SIGABRT) when compiling Kotlin with Local JARs

Description:

A critical build failure occurs during the mergeProjectDex / mergeExtDex tasks. The build system crashes with a native binary exit code (SIGABRT 134) and fails to process the arguments due to system limitations (Argument list too long). This issue is highly reproducible when incorporating local JAR dependencies alongside Kotlin/Jetpack Compose libraries.

Error Logs:

General
> Run debug · app
dex merge: forked VM, 1536MB heap
dalvikvm64 exited with SIGABRT (code 134) — the native binary crashed
FAILED :app:mergeProjectDexDebug: dex merge failed
dex merge: dropped 890 duplicate class dex (defined by more than one library)
could not launch /apex/com.android.art/bin/dalvikvm64: Cannot run program "/apex/com.android.art/bin/dalvikvm64": error=7, Argument list too long

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions