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

后端 未结 6 1432
孤独总比滥情好
孤独总比滥情好 2021-02-13 01:20

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

Back when Android Stu

6条回答
  •  礼貌的吻别
    2021-02-13 02:04

    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.
    

提交回复
热议问题