fakak73
fakak73
"com.rey.material.widget.CheckBox cannot be cast to android.widget.CheckBox " how i can solve this error in java code this error is appear please help
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by: java.lang.ClassCastException: com.rey.material.widget.CheckBox cannot be cast to android.widget.CheckBox at com.teamtreehouse.ecomerce.SigninActivity.onCreate(SigninActivity.java:43) at android.app.Activity.performCreate(Activity.java:6876) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3206) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349) at android.app.ActivityThread.access$1100(ActivityThread.java:221) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) at android.os.Handler.dispatchMessage(Handler.java:102) at...
Ok thanks On Fri, Nov 1, 2019, 3:32 AM arpitjain1996 wrote: > Basically you are trying to cast com.rey.materil.widget.CheckBox to > android.widget.CheckBox which throws error makes our application to stop...