The NH groups in polyaniline (PAn) can form hydrogen bonding with C=O groups in 1-methyl-2-pyrrolidone (NMP), and the C=O groups in NMP can also form hydrogen bonding with acid, leading to a decreased chance for NMP plasticized PAn to be doped by the acid. Thus, the interior part of the film is difficult to be doped due to this interaction and the diffusional resistance of dopants when immersed in acid solutions. However, doping PAn by mixing an acid (polymeric or monomeric) with PAn solution in NMP and then casting into a film is the best way to produce a PAn film with uniform doping.