java.lang.ClassCastException:FragmentManagement cannot be cast to android.app.Activity异常

com.example.wang.intelligentpark E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.wang.intelligentpark, PID: 12577
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.wang.intelligentpark/com.example.wang.intelligentpark.freetreeview.FragmentManagement}: java.lang.ClassCastException: com.example.wang.intelligentpark.freetreeview.FragmentManagement cannot be cast to android.app.Activity

解决办法

页面转换的时候,FragmentManagement是一个Fragment,intent方法中一下页面是activity。


版权声明:本文为Punkkfish原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。