Guest User

Untitled

a guest
Nov 17th, 2021
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.60 KB | None | 0 0
  1. E/AndroidRuntime: FATAL EXCEPTION: main
  2.     Process: com.exampler.android.voiceassistent, PID: 12155
  3.     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.
  4.        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
  5.        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
  6.        at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4699)
  7.        at android.app.ActivityThread.-wrap18(Unknown Source:0)
  8.        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1595)
  9.        at android.os.Handler.dispatchMessage(Handler.java:106)
  10.        at android.os.Looper.loop(Looper.java:164)
  11.        at android.app.ActivityThread.main(ActivityThread.java:6494)
  12.        at java.lang.reflect.Method.invoke(Native Method)
  13.        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
  14.        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
  15.     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.
  16.         at android.view.View.onRestoreInstanceState(View.java:17731)
  17.         at android.widget.TextView.onRestoreInstanceState(TextView.java:5073)
  18.         at android.view.View.dispatchRestoreInstanceState(View.java:17706)
  19.         at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3751)
  20.         at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3751)
  21.         at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3751)
  22.         at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3751)
  23.         at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3751)
  24.         at android.view.View.restoreHierarchyState(View.java:17684)
  25.         at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2131)
  26.         at android.app.Activity.onRestoreInstanceState(Activity.java:1102)
  27.         at android.app.Activity.performRestoreInstanceState(Activity.java:1057)
  28.         at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1260)
  29.         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2751)
  30.         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) 
  31.         at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4699) 
  32.         at android.app.ActivityThread.-wrap18(Unknown Source:0) 
  33.         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1595) 
  34.         at android.os.Handler.dispatchMessage(Handler.java:106) 
  35.         at android.os.Looper.loop(Looper.java:164) 
  36.         at android.app.ActivityThread.main(ActivityThread.java:6494) 
  37.         at java.lang.reflect.Method.invoke(Native Method) 
  38.         at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 
  39.         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 
Advertisement
Add Comment
Please, Sign In to add comment