Skip to content

SVG with large group of paths cannot compile #648

@fergdev

Description

@fergdev

I am attempting to use Valkyrie to export an asset set into a Library. I have encountered an issue when exporting this asset. I contains one large group of paths which generates a method that is too large to be compiled (currently compiling for Android).

Is there a way you can detect groups with a large set of paths and generate smaller methods to compose that group of paths?

Asset
Image

Kt output
FlagMxValkyrie.kt.txt

Compilation Error

java.lang.RuntimeException: Error generating class file FlagMxKt.class (compiled from FlagMx.kt]): Method too large: FlagMxKt.getFlagMx ()Landroidx/compose/ui/graphics/vector/ImageVector;

Caused by: org.jetbrains.org.objectweb.asm.MethodTooLargeException: Method too large: FlagMxKt.getFlagMx ()Landroidx/compose/ui/graphics/vector/ImageVector;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Question.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions