I am publishing an Android app to the Google Play Store soon and have some questions regarding the use of libraries licensed under Apache 2.0. I am also releasing the source code on GitHub. I am only using these libraries, not modifying them. To me, these are two separate concerns so I will address them separately.
The published Android app
It is my understanding that software using libraries licensed under Apache 2.0 must include a copy of the license and give attribution. If this is correct, I would package the Apache 2.0 license in my app and link it in an "About" section, where I list the libraries used and each of their licenses.
GitHub source code
I believe this is a different case than the published Android app because it could be considered redistributing licensed software. My repository does not include the actual .jar files of the libraries, so I don't believe I'm redistributing the licensed software. Those .jar files are merely referenced, and the code in my repository uses these libraries. If this is considered a redistribution, I would include the licenses of each library in the Git repository, and that would be enough. If it isn't a redistribution, then I believe I have no obligation to include the licenses.
Please let me know if I am understanding the conditions of the Apache 2.0 license correctly and I will meet these conditions with my proposed solutions.