While building the project after adding
apply plugin: 'org.greenrobot.greendao'
greendao {
schemaVersion 2
}
and
compile 'org.greenrobot:greendao:3.2.0'
in dependencies, project is showing error : "Could not find method greendao() for arguments on project "
Just add the line :
apply plugin: 'org.greenrobot.greendao'
before the line
apply plugin: 'com.android.application'
and project should build.
ex.
apply plugin: 'org.greenrobot.greendao'
apply plugin: 'com.android.application'