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

Stack Overflow | Kemo | 4 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    Stack Overflow | 4 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
  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

    "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

    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:216)
      1 frame
    3. Android Support v4
      FragmentActivity.onStart
      1. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1083)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
      3. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
      4. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
      5. android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:330)
      6. android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:547)
      6 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1174)
      2. android.app.Activity.performStart(Activity.java:5347)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2168)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
      5. android.app.ActivityThread.access$800(ActivityThread.java:135)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:136)
      9. android.app.ActivityThread.main(ActivityThread.java:5021)
      9 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame