Australian writer Yang Hengjun has been formally arrested in China on suspicion of espionage, the Australian government said on Tuesday.