Upgrading to Jetpack Compose Alpha 12 causes errors on setContent
问题 I upgraded to Jetpack Compose 1.0.0-alpha12 and started to run into issues. Firstly, the setContent method I was using showed as deprecated. From the Alpha 12 release notes, I noticed that it said: ComponentActivity.setContent has moved to androidx.activity.compose.setContent in the androidx.activity:activity-compose module. (Icf416) So I removed my import androidx.compose.ui.platform.setContent and switched it to import androidx.activity.compose.setContent , which removed the deprecation.