我按照官方指南创建viewModel实例,它运行良好。但是,当 中存在任何内容viewModel时@composable,Android Studio 无法呈现预览和错误代码ViewModels creation is not supported in Preview。有人有任何解决方案吗?
viewModel
@composable
ViewModels creation is not supported in Preview
PS使用撰写版本 1.0.0-alpha06
1.0.0-alpha06
android-jetpack-compose
android-jetpack-compose ×1