Skip to content Skip to sidebar Skip to footer

How To Fix Androidx.appcompat.widget.appcompatbutton Cannot Be Cast To Com.rey.material.widget.button

I'm building a amazon like app. after coding the loginactivity I can't access it from mainactivity because it always crashes this is my loginactivity.java public class loginActivit

Solution 1:

Try changing com.rey.material.widget.Button import to androidx.appcompat.widget.AppCompatButton

Solution 2:

Try using "Users" instead of parentDbName. if (dataSnapshot.child("Users").child(phone).exists())

Solution 3:

In firebase, you are creating account for admin, change in firebase from phone: 9999999999 to phone: "9999999999". means add double quote(") in name,phone and password.

if you are not puting double quote in firebase the data is in long datatype. But the java file want all data in string value.

Post a Comment for "How To Fix Androidx.appcompat.widget.appcompatbutton Cannot Be Cast To Com.rey.material.widget.button"