We do not give advice on legal compliance for third party components or how to best fulfill the license requirements. It is our advice to speak to your lawyer about the legal requirements needed for your application.
We do utilize a third party plugin in our example applications that helps gather information that may reduce the amount of outside research. This is a 3rd party tool that we only recommend to help gather information. Outside research and other tools should also be used in conjunction with speaking with your lawyer.
The plugin we use is located here https://github.com/jaredsburrows/gradle-license-plugin
To run the 3rd party plugin you go to the home directory of the application and run the command ./gradlew licenseReleaseReport
.
Once the report has finished this should create a license file in ~/%ApplicationName%/app/build/reports/licenses/licenseReleaseReport.html
Below is an example of the report