Android Studio and android.support.v4.app.Fragment: cannot resolve symbol

后端 未结 22 2842
眼角桃花
眼角桃花 2020-12-01 06:03

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-

22条回答
  •  忘掉有多难
    2020-12-01 06:30

    replace this line of code

    import android.support.v4.app.FragmentActivity;
    

    with

    import androidx.fragment.app.FragmentActivity;
    

    and you are done.

提交回复
热议问题