Why aniline does not undergo Friedel croft reaction?

Why aniline does not undergo Friedel croft reaction?

Aniline does not undergo Friedel craft’s reactions because the reagent AlCl3 (the Lewis acid which is used as a catalyst in friedel crafts reaction), being electron deficient acts as a Lewis base. and attacks on the lone pair of nitrogen present in aniline to form an insoluble complex which precipitates out and the reaction does not proceed.