To 2-aminonicotinic acid (2.0 g, 14.5 mmol) and methylamine hydrochloride (1.47 g, 1.5 eq.) were added EDC (4.49 g, 1.5 eq.), HOBt (2.35 g, 1.2 eq.), and DIEA (7.6 mL, 3.0 eq.) sequentially in DMF (20 mL). The reaction mixture was stirred at room temperature overnight. Upon completion of the reaction, the crude product was concentrated and the residue was dissolved in EtOAc. The organic phase was washed with saturated NaHCO3 solution. After removing the solvent under reduced pressure, the crude product was purified by silica gel column chromatography (eluent: 0%-20% MeOH/DCM) to afford the target compound 2-amino-N-methylnicotinamide (2.16 g, isolated yield 98%).