Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ class VariantProcessor {
mVariant = variant
// gradle version
mProject.parent.buildscript.getConfigurations().getByName("classpath").getDependencies().each { Dependency dep ->
if (dep.name == "gradle") {
if (dep.group == "com.android.tools.build" && dep.name == "gradle") {
mGradlePluginVersion = dep.version
}
}
if (mGradlePluginVersion == null) {
throw new IllegalStateException("com.android.tools.build:gradle is no set in the root build.gradle file")
}
}

void addArtifacts(Set<ResolvedArtifact> resolvedArtifacts) {
Expand Down