java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example/com.example.activity.EditProjectActivity}: java.lang.IllegalStateException: ScrollView can host only one direct child

Stack Overflow | Alex Ferg | 5 months ago
  1. 0

    ScrollView can host only one direct child but it has only one

    Stack Overflow | 5 months ago | Alex Ferg
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example/com.example.activity.EditProjectActivity}: java.lang.IllegalStateException: ScrollView can host only one direct child
  2. 0

    App Crashes on Launch [Android]

    Stack Overflow | 9 months ago | Blank
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dgriffin.relativelayotuandscrollview/com.dgriffin.relativelayotuandscrollview.MainActivity}: java.lang.IllegalStateException: ScrollView can host only one direct child
  3. 0

    Tried adding ScrollView to my layout, but it crashes my app

    Stack Overflow | 3 months ago | Patrick Porter
    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

    Android Admob force closin

    Stack Overflow | 3 years ago | mr.j05hua
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mrj05hua.hanselgretelwhfree/com.mrj05hua.hanselgretelwhfree.MainActivity}: java.lang.IllegalStateException: ScrollView can host only one direct child
  6. 0

    How to manage slidingdrawer with scroll view?

    Stack Overflow | 3 years ago | user2935301
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.capstone.classitweetsdemo/com.capstone.classitweetsdemo.MainActivity}: java.lang.IllegalStateException: ScrollView can host only one direct child

  1. Akshay 5 times, last 7 months ago
  2. NedGr8 4 times, last 8 months ago
1 unregistered visitors
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
    LayoutInflater.inflate
    1. android.widget.ScrollView.addView(ScrollView.java:416)
    2. android.view.LayoutInflater.rInflate(LayoutInflater.java:822)
    3. android.view.LayoutInflater.rInflate(LayoutInflater.java:821)
    4. android.view.LayoutInflater.inflate(LayoutInflater.java:511)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:415)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:366)
    6 frames
  3. Android v7
    AppCompatActivity.setContentView
    1. android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280)
    2. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
    2 frames
  4. com.example.activity
    EditProjectActivity.onCreate
    1. com.example.activity.EditProjectActivity.onCreate(EditProjectActivity.java:38)
    1 frame
  5. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Activity.performCreate(Activity.java:6288)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2642)
    3 frames