In #140744 we added the ability to use kotlin in gradle files but did not update all the parsing logic that was previously written assuming groovy.
This bug tracks updating the AGP version grepping and validation logic to support kotlin based gradle builds.