8000
Skip to content

Crash on opening V2 OssLicensesActivity with Nav3 1.1.0 #400

Description

@barry-irvine

Describe the bug
If you use the plugin with Navigation 3 1.1.0 you get a crash when trying to launch the v2.OssLicensesActivity.

To Reproduce
Steps to reproduce the behavior:

  1. Add Navigation 1.1.0 to your project
  2. Click on the link in your app that launches OssLicensesActivity
  3. App crashes

Expected behavior
OSS Licenses Activity should work regardless of which Nav3 version the project implements.

Desktop:

  • Gradle version: 9.4.1
  • Android Studio: version Panda v3
  • Plugin name and version: OSS Licenses 17.5.0

Additional context
Stack trace

Fatal Exception: java.lang.NoSuchMethodError
No static method NavDisplay(Ljava/util/List;Landroidx/compose/ui/Modifier;Landroidx/compose/ui/Alignment;Lkotlin/jvm/functions/Function0;Ljava/util/List;Landroidx/navigation3/scene/SceneStrategy;Landroidx/compose/animation/SharedTransitionScope;Landroidx/compose/animation/SizeTransform;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;III)V in class Lzf2; or its super classes (declaration of 'zf2' appears in /data/app/~~boFkiWUAp582YyiTPKfxng==/uk.co.bazsoft.yaniv-Yx_qKzOjHRVR3BxKzt-I8Q==/base.apk)

In Nav3 1.1.0, the sceneStrategy parameter is no longer available and is replaced by sceneStrategies which takes a listOf<SceneStrategy>. I suspect that might be the issue. Either OSS Licenses should enforce its own version of the Nav3 library or it should work with 1.1.0.

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

    0