Justin Xu
03/22/2023, 1:28 AMNone of the following candidates is applicable because of receiver type mismatch
error in my Android Activity code, even though it builds and runs without issues. I've posted pictures of the exact errors below.
These are my imports for those two functions:
import androidx.activity.compose.setContent
import androidx.activity.viewModels
These are my gradle imports:
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("androidx.core:core-ktx:1.9.0")
// Lifecycle
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1")
Ian Lake
03/22/2023, 2:37 AMactivity-compose
?