Skip to content Skip to sidebar Skip to footer

Jetpack Compose : Viewtreelifecycleowner Not Found

I'm getting this error while using Compose in my fragment which works fine in case of XML ViewTreeLifecycleOwner not found from androidx.fragment.app.FragmentContainerView I'm usin

Solution 1:

Since you are using an AppCompatActivity, only the appcompat 1.3 versions populate the ViewTreeLifecycleOwner.

Add:

implementation 'androidx.appcompat:appcompat:1.3.0'

Post a Comment for "Jetpack Compose : Viewtreelifecycleowner Not Found"