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:
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