How to compile smack in android studio

Hi all, I want to change some smack-core and smack-tcp codes so that integrate to my Android app. How to add smack codes to android studio as a local dependency after cloning from github? Is there any conflict?

Best regards…