Friedel-Crafts reactions fail on rings that are strongly deactivated and on rings that carry a basic group which binds . Nitrobenzene () and acetophenone () have strongly deactivating groups. Aniline binds through nitrogen. Toluene has an activating methyl group and reacts easily.
Nitrobenzene is so unreactive under these conditions that it is used as a solvent for Friedel-Crafts acylation.
Thinking aniline reacts because is an activating group. The group is activating only until it meets the Lewis acid.