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