loloof64
07/23/2022, 3:43 PMandroidx.lifecycle:lifecycle-viewmodel-compose:2.5.0 to build.gradle file of the app module. Why ?
(I keep getting the error "Expression 'viewModel' of type 'StockfishLibraryViewModel' cannot be invoked as a function. The function 'invoke()' is not found")loloof64
07/23/2022, 3:48 PMIan Lake
07/23/2022, 3:50 PMviewModel()loloof64
07/23/2022, 3:51 PMloloof64
07/23/2022, 3:53 PMIan Lake
07/23/2022, 3:55 PMviewModel() function: import androidx.lifecycle.viewmodel.compose.viewModelloloof64
07/23/2022, 3:55 PMloloof64
07/23/2022, 3:56 PMIan Lake
07/23/2022, 3:56 PMinvoke() method on your variable named viewModel when you add the parentheses after the variable nameIan Lake
07/23/2022, 3:56 PMloloof64
07/23/2022, 3:56 PMloloof64
07/23/2022, 3:57 PM