importar android.support.v7.app.alertdialog Androidx

import androidx.appcompat.app.AlertDialog;
CodeIsEveryThing