I am tryng out Android Studio instead of Eclipse. I install it and then start a completely new project and follow the wizard. I add no code of my own.
Then, I right-
replace this line of code
import android.support.v4.app.FragmentActivity;
with
import androidx.fragment.app.FragmentActivity;
and you are done.