Personally if I got so far as spotting the problem then I'd answer it. Maybe slightly snarkily:
As the error message says, a scrollview can only hold one direct
child. Your scrollview has two direct children, they are X and Y in
your XML.
I would not provide a fix, even if asked for one in a comment, although if there's an obvious way to restructure then I might state it in English.
We can speculate the questioner didn't read the error message, but maybe they just don't really clock what a "direct child" is, and didn't really understand the restriction stated. If you don't really understand the jargon in front of you, it can genuinely be difficult to realise that just looking it up verbatim would explain the problem.
It's true that the question doesn't show any research effort. It should at least say for example, "I have tried to work out what 'a scrollview can only hold one direct child means', but I'm lost. What's a scrollview?". It's also a classic fit for the old "too localized" reason. So it doesn't make me sad if a question like that is closed, but when close reasons are removed I'm not going to tie myself in knots trying to find a new close reason that matches questions I didn't like for the old reason.
I think downvoting is sufficient but closing is preferred, provided that the close reason is going to make sense to the questioner, and give them some indication what they did wrong. If you wouldn't say with a straight face to a colleague who made that mistake, "there's a typo in your XML file" then it simply won't make sense to the questioner when you close for that reason and therefore won't improve their questions.
I realise that there are people who think that such bad questions shouldn't be answered, because it just encourages people to ask questions in the hope of getting help, when they should only be asking questions that contribute to the site. I occasionally help questioners even when that doesn't help the mission and I'm aware that this puts me in conflict with other users' vision for the site.