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

后端 未结 29 1230
借酒劲吻你
借酒劲吻你 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:02

    In Ubuntu 14.04 after $ sudo apt-get install gradle I've got

    $ whereis gradle
    gradle: /usr/bin/gradle /usr/bin/X11/gradle /usr/share/gradle /usr/share/man/man1/gradle.1.gz
    

    The path to Gradle was /usr/share/gradle

    0 讨论(0)
  • 2020-12-02 05:02

    Download Gradle as described above, but make sure you download version 1.9 and not the current release (1.11). I just had the same problem and downloaded the current release only to have Android Studio tell me it wasn't supported.

    0 讨论(0)
  • 2020-12-02 05:05

    In Windows

    ..\AndroidStudio2.0Beta6\android-studio\gradle\gradle-2.10
    
    0 讨论(0)
  • 2020-12-02 05:06

    On Linux run: whereis gradle.

    For me it was /usr/lib/gradle/1.10.

    0 讨论(0)
  • 2020-12-02 05:06

    I used umake to install android studio. For me the path was

    /home/user/.local/share/umake/android/android-studio/gradle/gradle-2.14.1
    
    0 讨论(0)
  • 2020-12-02 05:07

    The gradle plugin (which contains a bundled version of gradle) should be already installed in where/you/installed/android-studio/plugins/gradle so you shouldn't need to manually download it. Depending on the version of Android Studio, that last directory may be where/you/installed/android-studio/gradle/gradle-x.y.z (x.y.z is the version, so check your filesystem for the exact path).

    If you intend on doing gradle development outside Android Studio or want a different version, you can download it separately and point it at that path, but if you only want to get Android Studio working with the bundled version, this path should do it.

    0 讨论(0)
提交回复
热议问题