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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Kemo
, 1 year ago
Unable to start activity ComponentInfo{com.test.kemo.restaurant/com.test.kemo.restaurant.MainActivity}: java.lang.IllegalStateException: HorizontalScrollView can host only one direct child
via GitHub by kum-rah
, 1 year ago
Unable to start activity ComponentInfo{com.example.nmsl.bdemo2/com.example.nmsl.CameraWithScreenShotActivity}: java.lang.IllegalStateException: com.beyondar.android.fragment.BeyondarFragmentSupport can not run without the compass sensor.
via GitHub by Widiyanto
, 1 day ago
Unable to start activity ComponentInfo{com.mobicomkit.sample/com.applozic.audiovideo.activity.AudioCallActivityV2}: java.lang.IllegalStateException: A VideoCapturer must provide at least one supported VideoFormat
via Stack Overflow by user1950583
, 2 years ago
Unable to start activity ComponentInfo{com.google.api.services.samples.calendar.android/com.google.api.services.samples.calendar.android.InsertActivity}: java.lang.IllegalStateException: Calling this from your main thread can lead to deadlock
via GitHub by Widiyanto
, 1 day ago
Unable to start activity ComponentInfo{com.mobicomkit.sample/com.applozic.audiovideo.activity.AudioCallActivityV2}: java.lang.IllegalStateException: A VideoCapturer must provide at least one supported VideoFormat
via Stack Overflow by Andrey Chernih
, 1 year ago
Unable to start activity ComponentInfo{com.example.mediacodec/com.example.mediacodec.MyActivity}: java.lang.IllegalStateException
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
at android.widget.HorizontalScrollView.addView(HorizontalScrollView.java:216)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1083)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:330)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1174)
at android.app.Activity.performStart(Activity.java:5347)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2168)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5021)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827)

Users with the same issue

5 times, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.