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

后端 未结 29 1513
借酒劲吻你
借酒劲吻你 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 04:58

    OSX (Less han two minutes)

    1. Open terminal
    2. Check if Gradle installed gradle --version, if so, goto step 4
    3. If not brew install gradle and Goto step 2
    4. Copy /usr/local/opt/gradle/libexec/
    5. Paste it in Import Project Window in Android Studio > Gradle Home
    6. Important, Celebrate!

提交回复
热议问题