java.lang.IllegalStateException: ScrollView 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 user3040968
, 1 year ago
ScrollView can host only one direct child
via GitHub by GoogleCodeExporter
, 1 year ago
The specified child already has a parent. You must call removeView() on the child's parent first.
via Google Groups by Unknown author, 2 weeks ago
Only fullscreen activities can request orientation
via Google Groups by NYAM, 1 month ago
Only fullscreen activities can request orientation
via Google Groups by Ishroid, 1 month ago
via Stack Overflow by Patrick Porter
, 1 year ago
ScrollView can host only one direct child
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)
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)

Users with the same issue

Once, 7 months ago
2 times, 7 months ago
3 times, 11 months ago
Once, 1 year ago
4 times, 1 year ago

Write tip

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