Add the following sentence to the dependencies in the build. Gradle file
implementation 'com.android.support:design:26.1.0'
Then modify import
import android.support.design.widget.BottomSheetDialog; // replace to the line below
import com.google.android.material.bottomsheet.BottomSheetDialog;