I was using the BottomSheetBehavior
with the original support library:
implementation \'com.android.support:design:27.1.1\'
W
It turns out that the refactor tool in Android Studio Refactor > Migrate to AndroidX
didn't correctly migrate the XML for the BottomSheetBehaviour.
The old location was android.support.design.widget.BottomSheetBehavior
, and was not modified by the migration tool. The original XML was:
The new location is com.google.android.material.bottomsheet.BottomSheetBehavior
, so the layout needs to become: