Screenshot attached. I'm just starting out, and am making a simple app. I keep getting error on line 72? I don't have a line 72. It doesn't cause the app to crash, but... I'm confused. I hate being confused. It's so confusing being confused.
Now I'm even more confused. I changed nothing and it went away. All I did was take a screenshot, write this post, then go back and rerun the code, and it's gone.
This Error is happening, when you initialize a Canvas on a View that has a width or height < 0. For example when you have height -1 to Fill the parent.
But I dont see why the Error is gone. Maybe try to log the size of the canvas view and try to prevent this Error from happening again.
Screenshot attached. I'm just starting out, and am making a simple app. I keep getting error on line 72? I don't have a line 72. It doesn't cause the app to crash, but... I'm confused. I hate being confused. It's so confusing being confused.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.