java.lang.RuntimeException: Unable to start activity ComponentInfo{com.assignmentexpert/com.assignmentexpert.NewMessageActivity}: java.lang.IllegalStateException: HorizontalScrollView can host only one direct child

  1. 0

    "IllegalStateException : scrollview can host only one direct child" in one LinearLayout adding

    Stack Overflow | 4 years ago | Rikki Tikki Tavi
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.assignmentexpert/com.assignmentexpert.NewMessageActivity}: java.lang.IllegalStateException: HorizontalScrollView can host only one direct child
  2. 0

    How to refresh horizontal layout when click different letter with respective data in android

    Stack Overflow | 2 years ago | user2340490
    java.lang.IllegalStateException: HorizontalScrollView can host only one direct child
  3. 0

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

    GitHub | 2 years ago | Dimoshka
    java.lang.IllegalStateException: HorizontalScrollView can host only one direct child
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Passing data from activity to fragment causes "ScrollView can host only one direct child" error

    Stack Overflow | 2 months ago | Kemo
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.kemo.restaurant/com.test.kemo.restaurant.MainActivity}: java.lang.IllegalStateException: HorizontalScrollView can host only one direct child
  6. 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

    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

      HorizontalScrollView can host only one direct child

      at android.widget.HorizontalScrollView.addView()
    2. Android Platform
      HorizontalScrollView.addView
      1. android.widget.HorizontalScrollView.addView(HorizontalScrollView.java:223)
      1 frame
    3. com.assignmentexpert
      NewMessageActivity.onCreate
      1. com.assignmentexpert.NewMessageActivity.addFiles(NewMessageActivity.java:165)
      2. com.assignmentexpert.NewMessageActivity.onCreate(NewMessageActivity.java:90)
      2 frames
    4. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
      2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
      2 frames