1.编译不通过,build报错,使用setContent方法报错
1).在build.gradle下配置,如有多个moudle 需要在主工程app下添加配置
2).引入对应的jar包
2.报错
ViewTreeLifecycleOwner not found from androidx.constraintlayout.widget.ConstraintLayout{d596746 V.E...... ...
将appcompat的版本号升级到1.3.1以上,composeView.setContent方法只能在Activity和Fragment中调用,Dialog中不可用(可以用DialogFragment替换)