  The $\Lambda$CDM model successfully explains the majority of cosmological
observations. However, the $\Lambda$CDM model is challenged by Hubble tension,
a remarkable difference of Hubble constant $H_0$ between measurements from
local probe and the prediction from Planck cosmic microwave background
observations under $ \Lambda$CDM model. So one urgently needs new distance
indicators to test the Hubble tension. Fast radio bursts (FRBs) are
millisecond-duration pulses occurring at cosmological distances, which are
attractive cosmological probes. However, there is a thorny problem that the
dispersion measures (DMs) contributed by host galaxy and the inhomogeneities of
intergalactic medium cannot be exactly determined from observations. Previous
works assuming fixed values for them bring uncontrolled systematic error in
analysis. A reasonable approach is to handle them as probability distributions
extracted from cosmological simulations. Here we report a measurement of ${H_0}
= 64.67^{+5.62}_{-4.66} {\rm \ km \ s^{-1} \ Mpc^{-1}}$ using fourteen
localized FRBs, with an uncertainty of 8.7\% at 68.3 per cent confidence.
Thanks to the high event rate of FRBs and localization capability of radio
telescopes (i.e., Australian Square Kilometre Array Pathfinder and Very Large
Array), future observations of a reasonably sized sample ($\sim$100 localized
FRBs) will provide a new way of measuring $H_0$ with a high precision
($\sim$2.6\%) to test the Hubble tension.
