I'm using
When I open Empty Compose Activity and compile, I got the below error
e: MainActivity.kt: (9, 37): Cannot access 'setContent': it is internal in 'androidx.compose.ui.platform'
It's so strange as it is a template-generated project, and should work. Any workaround it?
Add this line in your gradle
// In charge of setContent
implementation "androidx.activity:activity-compose:1.0.0-beta01"
activity-compose holds the reference for the setContent method you need
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With