Importar Android.support.v7.app.appCompatactivity Erro

//if you are using androidx......
import android.support.v7.app.AppCompatActivity;
//to
import androidx.appcompat.app.AppCompatActivity;
Innocent Ibis