This answer is not correct. A carboxylic acid will react with an amine in an acid-base reaction with a krxn = 105. This acid-base reaction pretty well dominates and no amide will be formed. There is a better answer.