How to solve inconvertable types cannot cast “Android.support.v4.app.fragment” to “packagename”

前端 未结 1 882
滥情空心
滥情空心 2021-01-19 09:14

I am creating an android application that consists of navigation drawer in android studio. I am getting an error called inconvertable types cannot cast \"How to solv

相关标签:
1条回答
  • 2021-01-19 09:56

    Just go to your Fragment_navigation class and replace

    import android.app.Fragment;

    with

    import android.support.v4.app.Fragment;

    0 讨论(0)
提交回复
热议问题