Gradle sync failed

I am new to android studio. When i try to add dependencies and trying to sync the project with gradle, it is saying that gradle dsl method not found compile(). and also asking me to apply gradle plugin. I dont understand what plugin i should apply. and i have java jdk version above 7 .please help me i am very much disappointed with this error. trying to add this dependency compile " ‘com.oguzdev:CircularFloatingActionMenu:1.0.2’ ".