Manually install Gradle and use it in Android Studio

后端 未结 17 2058
忘掉有多难
忘掉有多难 2020-12-07 11:35

I\'m using Android Studio. How can I manually install and use Gradle within Android Studio.

I\'ve downloaded Gradle from http

17条回答
  •  庸人自扰
    2020-12-07 12:03

    Step 1: Go to the download site from Gradle: https://gradle.org/releases/

    Step 2: Extract the downloaded zip file into a directory.

    Step 2: Hit Ctrl + Alt + S (mac: ⌘ + ,) in Android studio/Intellij IDEA

    Step 3: Goto: Build, Execution, Deployment >> Build Tools >> Gradle (Or just type in the searchbar Gradle)

    Step 4: Select: (X) Use local gradle distribution and set Gradle home to your extracted Gradle directory. Click on apply.

    Step 5: Get rid of your unnecessary gradle files delete:
    - MyApp/gradle/
    - gradlew
    - gradlew.bat

提交回复
热议问题