java.lang.IllegalStateException

ScrollView can host only one direct child

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3383

  • ScrollView can host only one direct child
  • ScrollView can host only one direct child
  • via Stack Overflow by user7796820
    , 1 month ago
    ScrollView can host only one direct child
  • Stack trace

    • java.lang.IllegalStateException: ScrollView can host only one direct child at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) at android.app.ActivityThread.access$1500(ActivityThread.java:117) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3683) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalStateException: ScrollView can host only one direct child at android.widget.ScrollView.addView(ScrollView.java:211) at edu.pacificu.mortgagecalculator.AmortizationActivity.createTable(AmortizationActivity.java:100) at edu.pacificu.mortgagecalculator.AmortizationActivity.initializeControls(AmortizationActivity.java:45) at edu.pacificu.mortgagecalculator.AmortizationActivity.onCreate(AmortizationActivity.java:35) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611) ... 11 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 month ago
    2 times, 1 month ago
    3 times, 5 months ago
    Unknown user
    Once, 8 months ago
    Once, 1 year ago
    1 more bugmates