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。

你可能感兴趣的:(Debug,java,移动开发)