Skip to content

[JetNews, JetSnack, Owl] The release version will crash if navigation-compose is used with minifyEnabled #692

@yacca

Description

@yacca

When launching the release builds of Jetnews, Jetsnack, and Owl
the following crash occurs:

11-02 14:43:30.994 28787 28787 E AndroidRuntime: FATAL EXCEPTION: main
11-02 14:43:30.994 28787 28787 E AndroidRuntime: Process: com.example.owl, PID: 28787
11-02 14:43:30.994 28787 28787 E AndroidRuntime: java.lang.IllegalAccessError: Illegal class access: 'uu0$a' attempting to access 'androidx.navigation.compose.NavHostKt$PopulateVisibleList$1$1$observer$1' (declaration of 'uu0$a' appears in /data/app/~~NgrI5-Z5F9_KRcBP9LmPFA==/com.example.owl-bQbZtxrcUChvaK343C1SXw==/base.apk)

All these apps use navigation-compose and set minifyEnabled to true for release build.
My app also has the same issue.
But it works well when I use navigation-compose older than 2.4.0-alpha08.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions