This repository was archived by the owner on Oct 31, 2022. It is now read-only.
This repository was archived by the owner on Oct 31, 2022. It is now read-only.
Support root project build.gradle OR Provide a detailed error of the issue #48
Open
Description
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.