G'day HP,
sounds like it was laced wrong. First make sure all the bits are in the right places (pic attached). Do a bit of measuring to check the frame is straight. Most important is that the sprockets line up.
If it's still out you will need to adjust the spokes to bring the rim to the center line of the frame. If it's only a mm or two you might be able to do it with the tyre (deflated) still on, any more and it's best to remove. Loosen the spokes on the right one turn and tighten the ones on the left one turn. Continue doing this till it's central, then some minor tweeking till it's running true. Not a huge job but time consuming.
Cheers