Grid Layout shows in game but not in Android build

I had a set of Buttons that were displayed in a ScrollRect with a Vertical Layout Group. Everything worked as expected. I resized everything and changed it to a Grid Layout Group. Now it works as expected when I run the game within Unity, but the buttons aren’t visible in the Android build. I’ve experimented by messing with almost every possible variable, including making the buttons extremely big just in case they were rendering too small on mobile. Nothing has worked.

Here’s the grid set up under Viewport > Content

Here’s a button

I nuked it all from orbit and rebuilt it, and now it works. I’d still like to know what happened so that this can be a Learning Experience™. I guess I’m happy that it works though?

I ran into the same problem - your Button’s Rect transform’s Pos Z would have put it out of the camera’s view. Not sure why it was fine on the editor but not on Android. However, changing the Pos Z to 0 fixed it for me.

I know you resolved your issue but I posted in case it helps anyone in future.

effectively I just remove the camera from the canvas and ready
4100575--358882--upload_2019-1-14_8-15-25.png

Hello. I tried all the solutions you wrote here. I have exported to android many times. But still the buttons are too small on mobile. In my project, z=0 and the camera is not attached. I really needed this system because my buttons were copied with code. Is there any other solution you can suggest?