It all depends on the kit and your particular "style." When I build a plane that has "plug-in" landing gear, I usually insert (but not glue) them after painting the airframe, and keep them on through glosscoating, decalling, panel-line wash, & dullcoating. When everything is dry, I remove the gear legs to paint the oleos.
Hope this can be of some help to you !