It looks like the variant property was removed from the BaseTask class in Gradle plugin 0.10.0.
Sources: http://repo1.maven.org/maven2/com/android/tools/build/gradle/0.10.0/gradle-0.10.0-sources.jar In version 0.9.0 I could do this: project.tasks.withType(ProcessAndroidResources) { println it.variant.name } However variant is not longer exists as a property of BaseTask in 0.10.0. I looked at the source in master, but it does not look like it has the changes from 0.10.0. https://android.googlesource.com/platform/tools/build/+/master/gradle/src/main/groovy/com/android/build/gradle/internal/tasks/BaseTask.groovy Is there another way to access the variant from a given task? -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
