Manually install Gradle and use it in Android Studio

后端 未结 17 2037
忘掉有多难
忘掉有多难 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:20

    Step 1. Download the latest Gradle distribution

    Step 2. Unpack the distribution

    Microsoft Windows users

    Create a new directory C:\Gradle with File Explorer.

    Open a second File Explorer window and go to the directory where the Gradle distribution was downloaded. Double-click the ZIP archive to expose the content. Drag the content folder gradle-4.1 to your newly created C:\Gradle folder.

    Alternatively you can unpack the Gradle distribution ZIP into C:\Gradle using an archiver tool of your choice.

    Step 3. Configure your system environment

    Microsoft Windows users

    In File Explorer right-click on the This PC (or Computer) icon, then click Properties -> Advanced System Settings -> Environmental Variables.

    Under System Variables select Path, then click Edit. Add an entry for C:\Gradle\gradle-4.1\bin. Click OK to save.

    Step 4. Verify your installation

提交回复
热议问题