When I open my project in Android Studio, I always get this.
Back when Android Stu
In my case the the problem was that studio version I am using does not support the gradle version of file, so in build.gradle I had to change the gradle version to 2.3.0 and everything is smooth now
I fixed this issue with the following steps:
Make sure that the following two files are in your project directory. If not, create a new one with reference of your other Android projects. These are default auto-generated files.
If it is still showing any errors when you open your project, restart your project by selecting file/(invalidate /restart).
import Project
File --> New -->import Project
The android studio support two "build mode". one is "legacy" and one is "gradle based". If you are using an very early version of android studio, probably you are still using the legacy build mode. You need to re-import your project using "gradle mode" then this warning will be gone.
To do so, select "file/import project", select your project root directory, and in the next dialog choose "Import project from external model" and select gradle. Then, you may choose "gradle wrapper" or use your own gradle distribution (1.8 for now[12/2013]).
i know this is an old question but is still valid with newer versions of AS.
If you try to import and import againa and still have the same issue, check if there's a gradle.build file on the root directory, if there's not just create one.
In my case I had to migrate an old project to the new version because with the 0.4.4+ version it stopped recognizing it, and it kept failing, and that was the problem.
Curious thing is the top level build.gradle file just contains this comment:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
This link can help, https://developer.android.com/studio/intro/migrate.html
Import as a Project: