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

后端 未结 6 1331
情书的邮戳
情书的邮戳 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:20

    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]).

提交回复
热议问题