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

后端 未结 3 1227
萌比男神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条回答
  •  被撕碎了的回忆
    2021-01-20 21:42

    android:id="@+id/editCustomerPhone"

    remove this line

    from below tag

    
    

    you have set it twice. One for relative layout one for edittext

提交回复
热议问题