SyntaxFix
Write A Post
Hire A Developer
Questions
Another possible recent solution is changing gradle version to:
classpath 'com.android.tools.build:gradle:3.0.0-rc2'
and updating build tool