Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin cannot be used if "com.android.tools.build:gradle" is not explicitly defined in root gradle file #172

Closed
mkopec87 opened this issue Aug 11, 2020 · 0 comments · Fixed by #173

Comments

@mkopec87
Copy link
Contributor

VariantProcessor explicitly checks buildscript dependencies to find android build tools version:

mProject.rootProject.buildscript.getConfigurations().getByName("classpath").getDependencies().each { Dependency dep ->

In my project, however, I don't define android build tools explicitly, but via a plugin.

It would be more robust to somehow search for android build tools dependency as a possibly transitive buildscript dependency.

I can see I have "com.android.tools.build:gradle" buildscript dependency, it's just not a top-level dependency, but a transitive one (I checked it via 'gradle buildEnvironment' task).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant