I have facing the same issue and I have also used apply plugin: 'com.android.application'.
This is happening in one of my projects other project gradle files are ok.
also there are these errors too:
'main' in 'build' cannot be applied to '(groovy.lang.Closure)'
'dependencies' cannot be applied to '(groovy.lang.Closure)'
Android studio sometimes behaves randomly. I have to invalidate cache and restart it.