Skip to content

[BUG] Code snippet in customized navigation tutorial leads to error #23

@lvca-exe

Description

@lvca-exe

Relevant tutorial: Customize the WIzard Generated Application

Bug description

The given code snippet in step 4.2 leads to an error displayed by the Android Studio IDE. The faulty line of code is this one:

val viewModel: ODataViewModel = viewModel(...)

The IDE expects a type for the generic ODataViewModel. However as no type is given, the IDE leads to the following error:

Image

Proposed solution

For me it just worked to accept the suggested change by the IDE. By adding the generic type <EntityValue> everything seemed to work just fine.

Technical Details

  • Android Studio Version: Meerkat 2024.3.1
  • SAP BTP SDK for Android Version: 25.4.7
  • Jetpack Compose-based UI

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