Tutorial [Q] Libs

Hi guys, I have a question for you, how can I integrate a library in Android? We ask this question because I noticed that in some ROM I have problems with whatsapp because I can not hear voice messages because it lacks the library to AAC format can someone tell me a guide to add the library that I need? Or some app?