To do this, you must first export the project from Eclipse
- Update the Eclipse ADT plugin (you must have version 22.0 or higher).
- In Eclipse, choose File> Export.
- In the window that appears, open Android and select "Create" Gradle build files.
- Select the projects you want to export for Android Studio, and click Finish.
The selected projects remain in the same place, but now contain the build.gradle file and are ready for Android Studio
Now you need to import the project into Android Studio
- In Android Studio, choose File> Import Project.
- Locate the project that you exported from Eclipse, select the root directory of the project, and click OK.
- Select "Create a project from existing sources" and click "Next."
- Follow the instructions to complete the import process.
For more information, visit the developer site from eclipse to the studio
Special note
I encountered the same error due to non-generated Gradle build files in Eclipse.
source share