skip to Main Content

Android Studio – compose lazy gridcells not resolving correctly in a read-only file

Required: androidx.compose.foundation.lazy.GridCells Found: androidx.compose.foundation.lazy.grid.GridCells for use with ReactionsPicker... a file from Stream Chat library ReactionsPicker call is in MessagesActivity ''' is SelectedMessageReactionsPickerState -> { val gcells=GridCells.Fixed(5) // I added this. cells is defined in file ReactionsPicker( cells= gcells, modifier =…

VIEW QUESTION

Android Studio – Implementing ViewModelProvider.Factory fails with Inheritance from an interface with '@JvmDefault' after adding Android Jetpack Compose navigation lib

I had this simple viewmodel provider factory code (borrowed from one of Google's code samples), which happily obliged and compiled perfectly... fun <VM : ViewModel> viewModelProviderFactoryOf( create: () -> VM ): ViewModelProvider.Factory = SimpleFactory(create) private class SimpleFactory<VM : ViewModel>( private…

VIEW QUESTION
Back To Top
Search