Being told project is not using the gradle build system when it is

后端 未结 6 1340
情书的邮戳
情书的邮戳 2021-02-13 01:34

When I open my project in Android Studio, I always get this. \"Error

Back when Android Stu

6条回答
  •  情深已故
    2021-02-13 02:21

    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.
    

提交回复
热议问题