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 :
before the line
and project should build.
ex.