Error:(1, 0) Gradle DSL method not found: ‘android()’

I just ran into this same error. Make sure you don’t have an android block in the top-level build.gradle for the project, only in the module’s build.gradle file.

This happened to me when AndroidStudio tried to import and existing, buildable Eclipse/ADT project–I had to cut and paste the android block from one gradle file to the other. I don’t know if this has been fixed in more recent versions of AndroidStudio.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)