The invention discloses an aggregation-induced luminescent aniline derivative luminescent compound, a preparation method and an application thereof. The luminescent compound of aniline derivatives includes chemical formula I, and the corresponding luminescent compounds of aniline derivatives are B1‑A1, Br‑B1‑A1, HO‑B1‑A1, MeO‑B1‑A1 and NO 2 ‑B1‑A1. Among them, B1‑A1 and Br‑B1‑A1 do not exhibit obvious AIE characteristics, while HO‑B1‑A1, MeO‑B1‑A1 and NO 2 ‑B1‑A1 all show obvious AIE characteristics; MeO‑B1‑A1 will have obvious changes in luminescent color under the action of external force grinding, which can be used for force-responsive smart materials; NO 2 ‑B1‑A1 showed a high sensitivity response to solvent polarity changes, enabling fast, efficient and linear detection of toxic substances (trace amounts of benzene) in food-grade n-hexane.