Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- E/AndroidRuntime: FATAL EXCEPTION: main
- Process: com.exampler.android.voiceassistent, PID: 12155
- java.lang.RuntimeException: Unable to start activity ComponentInfo{com.exampler.android.voiceassistent/com.exampler.android.voiceassistent.MainActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class com.google.android.material.button.MaterialButton$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/sendButton. Make sure other views do not use the same id.
- at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
- at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
- at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4699)
- at android.app.ActivityThread.-wrap18(Unknown Source:0)
- at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1595)
- at android.os.Handler.dispatchMessage(Handler.java:106)
- at android.os.Looper.loop(Looper.java:164)
- at android.app.ActivityThread.main(ActivityThread.java:6494)
- at java.lang.reflect.Method.invoke(Native Method)
- at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
- at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
- Caused by: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class com.google.android.material.button.MaterialButton$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/sendButton. Make sure other views do not use the same id.
- at android.view.View.onRestoreInstanceState(View.java:17731)
- at android.widget.TextView.onRestoreInstanceState(TextView.java:5073)
- at android.view.View.dispatchRestoreInstanceState(View.java:17706)
- at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3751)
- at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3751)
- at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3751)
- at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3751)
- at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3751)
- at android.view.View.restoreHierarchyState(View.java:17684)
- at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2131)
- at android.app.Activity.onRestoreInstanceState(Activity.java:1102)
- at android.app.Activity.performRestoreInstanceState(Activity.java:1057)
- at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1260)
- at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2751)
- at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
- at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4699)
- at android.app.ActivityThread.-wrap18(Unknown Source:0)
- at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1595)
- at android.os.Handler.dispatchMessage(Handler.java:106)
- at android.os.Looper.loop(Looper.java:164)
- at android.app.ActivityThread.main(ActivityThread.java:6494)
- at java.lang.reflect.Method.invoke(Native Method)
- at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
- at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Advertisement
Add Comment
Please, Sign In to add comment