How to build library file for Android?

Description

I'm new to use ffmpeg actually i want to build a library for Android while searching in internet i got so many links, i followed it but I can't build it. I got so many issues now what i need to do exactly can you give me steps, how to build the latest version of NDK with latest ffmpeg source.