<Kotlin Android - adding values to data class erro...
# stackoverflow
u
Kotlin Android - adding values to data class error, Why would it cause my app to crash I am trying to have a grid layout in a recyclerview to show and image text and a double variable. The goal is to add a search bar that will display the results to the recycleView. I am new to kotlin so forgive me if the problem is obvious. I am not sure exactly what is causing my app to crash, but I narrowed it down to 1 line of code in my MainActivity.kt dataList.add(mealData("mealTitle.toString()", Restaurant.toString(),R.drawable.food1,"mealCat.toString()",...