Andrew graduated from the City College of Philadelphia (later the University of Pennsylvania) in 1759, read law under Benjamin Chew, and then went to London to complete a legal education at the Inner Temple.