This invention provides a class of five-member-heterocycle fused pyridine compounds as shown below in Formula (X), pharmaceutically acceptable salts or pharmaceutically acceptable solvates thereof, a method of preducing the same, pharmaceutical compositions containing the compound, and use of the compounds in preparing medicament for preventing and/or treating diseases and tumours associated with abnormal protein tyrosine kinase.