I used Activity(), not AppcompatActivity() to make transparent background.
class CommentActivity : Activity() {
And when I tried to create ViewModel, I can’t use this as ViewModelStoreOwner.
How can I solve this problem?
>Solution :
You have to at least extend ComponentActivity, native Activity doesn’t contain any support for androidx components.
