java.lang.IllegalStateException: ScrollView can host only one direct child

Stack Overflow | Vivek Mishra | 4 months ago
  1. 0

    SnackBar causing crash with ScrollView with Illegal State Exception

    Stack Overflow | 4 months ago | Vivek Mishra
    java.lang.IllegalStateException: ScrollView can host only one direct child
  2. 0

    programatically add elements to a scrollview gives me Java.Lang.IllegalStateException

    Stack Overflow | 4 years ago | clement
    java.lang.IllegalStateException: ScrollView can host only one direct child
  3. 0

    How to set multiple views in ScrollView?

    Stack Overflow | 3 years ago | Fcps
    java.lang.IllegalStateException: ScrollView can host only one direct child
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Trouble is adding multi Edit Text Views

    Stack Overflow | 3 years ago | bhanu kaushik
    java.lang.IllegalStateException: ScrollView can host only one direct child
  6. 0

    ScrollView can host only one direct child - without ScrollView

    Stack Overflow | 1 year ago | rala
    java.lang.IllegalStateException: ScrollView can host only one direct child

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      ScrollView can host only one direct child

      at android.widget.ScrollView.addView()
    2. Android Platform
      ScrollView.addView
      1. android.widget.ScrollView.addView(ScrollView.java:253)
      1 frame
    3. android.support.design
      Snackbar$1.handleMessage
      1. android.support.design.widget.Snackbar.showView(Snackbar.java:475)
      2. android.support.design.widget.Snackbar$1.handleMessage(Snackbar.java:162)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:107)
      2. android.os.Looper.loop(Looper.java:214)
      3. android.app.ActivityThread.main(ActivityThread.java:6102)
      3 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
      2 frames