How to set gradle home while importing existing project in Android studio

后端 未结 29 1515
借酒劲吻你
借酒劲吻你 2020-12-02 04:49

How to set gradle home while importing existing project in Android studio. While trying to import I need to set up this path.

29条回答
  •  难免孤独
    2020-12-02 05:11

    For Mac OS, you can use the following -

    1. /usr/local/opt/gradle/libexec/ or more generically - path/to/gradle/libexec/ - this is recommended. (the first path is what's achieved after installing gradle via Homebrew)
    2. /path/to/android/studio/plugins/gradle - I don't recommend this because this version of Gradle might be out of date, and Android Studio itself might say it's incompatible.

提交回复
热议问题