Check that the safety in on. Else it blocks the latching mechanism, and you can break the safety spring if you try to force it all back together with the safety off. Ask me how I know.
I find that the force required to get the trigger assy to click into place is substantial. As per the above, be sure the mag and all else are really in place. However, it may be easier to swing the mag open and verify that the pins on the assy front end are going into the slots in the receiver bottom.
I usually hold the rifle on the floor with the trigger assy up, and force down with both hands to get it to latch.