Gradle sync failed for android

how can i fix the following android error.
Caused by: org.gradle.api.plugins.UnknownPluginException: Plugin with id ‘com.android.application’ not found.