android.support.v7.app.AppCompatActivity in v4 code example
Example: import android.support.v7.app.appcompatactivity error
//if you are using androidx......
import android.support.v7.app.AppCompatActivity;
//to
import androidx.appcompat.app.AppCompatActivity;