How to update gradle in android studio?

前端 未结 14 1988
Happy的楠姐
Happy的楠姐 2020-11-22 09:15

I installed Android Studio 0.1.9. Today I got and update to version 0.2 and of course I updated. After the installation I restarted Android Studio but now I get this messag

相关标签:
14条回答
  • 2020-11-22 09:36

    This may not be the exact answer for the OP, but is the answer to the Title of the question: How to Update Gradle in Android Studio (AS):

    • Get latest version supported by AS: http://www.gradle.org/downloads (Currently 1.9, 1.10 is NOT supported by AS yet)
    • Install: Unzip to anywhere like near where AS is installed: C:\Users[username]\gradle-1.9\
    • Open AS: File->Settings->Gradle->Service directory path: (Change to folder you set above) ->Click ok. Status on bottom should indicate it's busy & error should be fixed. Might have to restart AS
    0 讨论(0)
  • 2020-11-22 09:41

    Open File > Project Structure > Project Tab

    Android Studio has built in project structure menu to check and update gradle and plugin used in the current project.

    Below Website gives a detailed explanation on how to update gradle and gradle plugin of Android Studio.

    Update gradle plugin Android Studio

    0 讨论(0)
  • 2020-11-22 09:41

    Most of the time you can have Android Studio automatically update the Gradle plugin.

    If your Gradle plugin version is behind, Instant Run will mostly likely not work. Therefore if you go to the Instant Run settings (Preferences > Build, Execution, Deployment > Instant Run), you'll see an Update project button at the top right (image below). Clicking this will update both the Gradle wrapper and build tools.

    0 讨论(0)
  • 2020-11-22 09:42

    Step 1 (Use default gradle wrapper)

    FileSettingsBuild, Execution, DeploymentBuild Tools→GradleUse default Gradle wrapper (recommended)

    Step 2 (Select desired gradle version)

    FileProject StructureProject

    The following table shows compatibility between Android plugin for Gradle and Gradle:

    Latest stable versions you can use with Android Studio 4.1.1 (November 2020):

    Android Gradle Plugin version: 4.1.1
    Gradle version: 6.5
    

    Official links

    • Version Compatibility
    • Migrate to Android Plugin for Gradle 3.0.0
    • Find out the latest version of Gradle
    • Info about the Gradle Wrapper
    0 讨论(0)
  • 2020-11-22 09:46

    I can't comment yet.

    Same as Kevin but with different UI step:

    This may not be the exact answer for the OP, but is the answer to the Title of the question: How to Update Gradle in Android Studio (AS):

    • Get latest version supported by AS: http://www.gradle.org/downloads (Currently 1.9, 1.10 is NOT supported by AS yet)
    • Install: Unzip to anywhere like near where AS is installed: C:\Users[username]\gradle-1.9\
    • Open AS: File->Settings->Build, Execution, Deployment->Build Tools-> Gradle->Service directory path: (Change to folder you set above) ->Click ok. Status on bottom should indicate it's busy & error should be fixed. Might have to restart AS
    0 讨论(0)
  • 2020-11-22 09:46

    It works for me:

    just go to '/home/your-user/.gradle/wrapper/dists/'

    delete everything inside of this

    It will be replaced by android studio

    on terminal run: ionic emulate android

    Its all...

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