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

Stack Overflow | user3040968 | 3 years ago
  1. 0

    ScrollView Programmatically

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

    programatically add elements to a scrollview gives me Java.Lang.IllegalStateException

    Stack Overflow | 4 years ago | clement
    java.lang.IllegalStateException: ScrollView can host only one direct child
  3. 0

    How to set multiple views in ScrollView?

    Stack Overflow | 3 years ago | Fcps
    java.lang.IllegalStateException: ScrollView can host only one direct child
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Trouble is adding multi Edit Text Views

    Stack Overflow | 3 years ago | bhanu kaushik
    java.lang.IllegalStateException: ScrollView can host only one direct child
  6. 0

    ScrollView can host only one direct child - without ScrollView

    Stack Overflow | 1 year ago | rala
    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

      ScrollView can host only one direct child

      at android.widget.ScrollView.addView()
    2. Android Platform
      ScrollView.addView
      1. android.widget.ScrollView.addView(ScrollView.java:211)
      1 frame
    3. edu.pacificu.mortgagecalculator
      AmortizationActivity.onCreate
      1. edu.pacificu.mortgagecalculator.AmortizationActivity.createTable(AmortizationActivity.java:100)
      2. edu.pacificu.mortgagecalculator.AmortizationActivity.initializeControls(AmortizationActivity.java:45)
      3. edu.pacificu.mortgagecalculator.AmortizationActivity.onCreate(AmortizationActivity.java:35)
      3 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
      2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
      3. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
      4. android.app.ActivityThread.access$1500(ActivityThread.java:117)
      5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
      6. android.os.Handler.dispatchMessage(Handler.java:99)
      7. android.os.Looper.loop(Looper.java:130)
      8. android.app.ActivityThread.main(ActivityThread.java:3683)
      8 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:507)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame