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

后端 未结 3 1256
萌比男神i
萌比男神i 2021-01-20 20:54

I get the following exception in Android when clicking a button to take me from an activity to another (I\'m new in Android development, so it may not be the brightest of qu

3条回答
  •  萌比男神i
    2021-01-20 21:39

    I received this error when my main activity.xml did not have the include statement to my content.xml file.

    Once i added these lines back into my main activity.xml file, everything was fine again.

        
    

提交回复
热议问题