use .all to iterate variants instead of .each. .each does not work on gradle android plugin 0.5.5 or later.