Issue
Currently if this plugin is applied to the root build.gradle instead of app/build.gradle the following error is shown.
Could not get unknown property 'android' for root project 'ProjectName' of type org.gradle.api.Project.
Solutions
Solutions below are in order of the best outcome
1. Solution - Apply plugin to all projects
If possible this plugin should apply itself to all Android projects
2. Solution - Provide a detailed error
We should provide a detailed message to move the plugin to their app/build.gradle. We should still cause the build to fail so the app developer knows that the plugin is not working.
Issue
Currently if this plugin is applied to the root
build.gradleinstead ofapp/build.gradlethe following error is shown.Solutions
Solutions below are in order of the best outcome
1. Solution - Apply plugin to all projects
If possible this plugin should apply itself to all Android projects
2. Solution - Provide a detailed error
We should provide a detailed message to move the plugin to their
app/build.gradle. We should still cause the build to fail so the app developer knows that the plugin is not working.