Android Studio XML preview not showing

I had the same issue it seems some problem with the alpha material library
I downgraded the material library dependency in the build.gradle to
implementation 'com.google.android.material:material:1.0.0'
then invalidated the cache and restarted the studio from
File -> Invalidate Caches / Restart...
It worked.

Leave a Comment