now i want to retrieve the name and id for the child from the firestore:
but there is a problem i don't know how to fix it
and this what i got when i run the app
i want to show it like this:
can someone help me with this problem? I think, that problem is in my Invalid argument(s)
The relevant error-causing widget was ParentPage.
Related
enter image description here
When I try to create a new class in the library of flutter, inside the class the constructor shows error
The problem is that you have your parameters as optionally named, which means the caller can decide not to pass q or a, but you also marked them as non-nullable. Add the required keyword before your parameters to make sure they're passed in and are non-null, or add a default.
Also, in the future:
Please copy-paste your code instead of using an image. This lets us quickly copy-paste it into our IDEs and find any errors.
Please post the error you're getting. Errors are your friends, they tell you what's wrong, and they'll help us figure out how to help you.
Unexpected text found in layout file android:backround="#252525">
I keep getting this error... I'm trying to make an alarm clock app, because I want one that fits how I would like it! If anyone else has had this issue or knows a fix please make sure to comment. Thank you!
Seems like you got a typo . which is a syntax error. Do this way:
<android:background="#252525">
For further info, refer :
this
this
I am getting error with the generated java file. But the code is fine and good . Can any one give suggestion.
thanks in advance.
Based on your image it appears that you are getting an error with the element with id of "enter", try changing the id of that element to something more descriptive and the error might go away.
You don't say which error you are getting. Usually you can resolve errors in R.java by removing it, and letting Eclipse regenerate it. If you still are getting the same error, you can try to rename the controls with the offending id.
If you wish further assistance, you need to say which error you are getting.
I have recently put an application on the Market and I have received until now 7 errors that look like the following:
java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.widget.ProgressBar$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/0x2. Make sure other views do not use the same id.
Can someone tell me how to debug the problem? What is View with id 0x2 - is there a way to find out?
I've received this error under the following conditions - I'm replacing the icon of an item in the actionbar (in my case a throbber for a refresh button), and while it's in that state, I rotate the device. This error arises from it trying to restore the view's saved state and noticing the difference between what's declared and what's serialized.
There should be a stacktrace next to the report which could help you find the exact line of code.
I read that this exception means that I added a LinearLayout that had no children but I checked the suspected layout and it has 21 children.
The exception doesn't seem to get raised until after the suspected layout (main) gets added to the screen so I guess it has a nested linearlayout has has no children, but there are alot of linearlayouts nested in there - so is there a quick way to find which one or to otherwise debug this?
Thanks
PS: seems when I step through this code I get frequent "out of memory" eclipse crashes too.
PPS:
Here is the exception stack from the error log:
com.sun.jdi.InternalException: Got invalid data:java.io.UTFDataFormatException: Second byte input does not match UTF Specification
at org.eclipse.jdi.internal.MirrorImpl.defaultIOExceptionHandler(MirrorImpl.java:269)
at org.eclipse.jdi.internal.VirtualMachineImpl.allClasses(VirtualMachineImpl.java:370)
at org.eclipse.jdi.internal.VirtualMachineImpl.allRefTypes(VirtualMachineImpl.java:382)
at org.eclipse.jdi.internal.ReferenceTypeImpl.nestedTypes(ReferenceTypeImpl.java:1105)
at org.eclipse.jdt.internal.debug.eval.ast.engine.BinaryBasedSourceGenerator.buildTypeDeclaration(BinaryBasedSourceGenerator.java:310)
at org.eclipse.jdt.internal.debug.eval.ast.engine.BinaryBasedSourceGenerator.buildTypeDeclaration(BinaryBasedSourceGenerator.java:322)
at org.eclipse.jdt.internal.debug.eval.ast.engine.BinaryBasedSourceGenerator.buildTypeDeclaration(BinaryBasedSourceGenerator.java:145)
at org.eclipse.jdt.internal.debug.eval.ast.engine.BinaryBasedSourceGenerator.buildTypeDeclaration(BinaryBasedSourceGenerator.java:160)
at org.eclipse.jdt.internal.debug.eval.ast.engine.BinaryBasedSourceGenerator.buildSource(BinaryBasedSourceGenerator.java:74)
at org.eclipse.jdt.internal.debug.eval.ast.engine.EvaluationSourceGenerator.getInstanceSourceMapper(EvaluationSourceGenerator.java:204)
at org.eclipse.jdt.internal.debug.eval.ast.engine.EvaluationSourceGenerator.getSource(EvaluationSourceGenerator.java:216)
at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.getCompiledExpression(ASTEvaluationEngine.java:226)
at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.evaluate(ASTEvaluationEngine.java:115)
at org.eclipse.jdt.internal.debug.ui.JavaWatchExpressionDelegate$EvaluationRunnable.run(JavaWatchExpressionDelegate.java:144)
at org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run(JDIThread.java:2751)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Ok, I think I fixed it by ading an IF like so:
if (ratCast.getChildCount()>0)
imgLay.addView(ratCast);
I had the same problem, solved calling the following code on the LinearLayout that contains no child:
ll.setBaselineAligned(false);