android.support.design.widget.AppBarLayout in androidx code example
Example: android.support.design.widget.coordinatorlayout androidx
Replace <android.support.design.widget.coordinatorlayout with
<androidx.coordinatorlayout.widget.CoordinatorLayout