The reason given for the question is that in aniline the lone pair on N atom is delocalized throughout the benzene ring, making it less available for donation.
But the conjugate acid of aniline should be more stable given the fact that the positive charge on N atom is also delocalized throughout the ring, hence making it more stable than the conjugate acid of methylamine which has +I effect. On that account, shouldn't aniline be more basic?