cannot be cast to android.support.v4.app.Fragment

Posted bit by bit

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cannot be cast to android.support.v4.app.Fragment相关的知识,希望对你有一定的参考价值。

android.app.Fragment

 as stated in the imports. Change the import to 

android.support.v4.app.Fragment

以上是关于cannot be cast to android.support.v4.app.Fragment的主要内容,如果未能解决你的问题,请参考以下文章

java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget

java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.TextVie

java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to com.demo

安卓出现错误: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditT

Android 从 View 中获取 Activity 时遇到 TintContextWrapper cannot be cast to 的问题

Android 从 View 中获取 Activity 时遇到 TintContextWrapper cannot be cast to 的问题