How to update gradle in android studio?

前端 未结 14 1989
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:46

    If your run button is gray. This is how i fixed it.

    Go to Run in menu, and then press this:

    Then it will run your Emulator, and your run button will become green again and you can use it. That is how i fixed it.

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

    after release of android studio v 3.0(stable), It will show popup, If gradle update is available

    OR

    Manually, just change version of gradle in top-level(project-level) build.gradle file to latest,

       buildscript {
          ...
          dependencies {
            classpath 'com.android.tools.build:gradle:3.0.0'
          }
        }
    

    check below chart

    The Android Gradle Plugin and Gradle
    
     Android Gradle Plugin            Requires Gradle
     1.0.0 - 1.1.3                    2.2.1 - 2.3
     1.2.0 - 1.3.1                    2.2.1 - 2.9
     1.5.0   2.2.1+                   2.2.1 - 2.13
     2.0.0 - 2.1.2                    2.10  - 2.13
     2.1.3 - 2.2.3                    2.14.1+
     2.3.0+                           3.3+
     3.0.0+                           4.1+    
     3.1.0+                           4.4+    
     3.2.0 - 3.2.1                    4.6+    
     3.3.0 - 3.3.1                    4.10.1+ 
     3.4.0 - 3.4.1                    5.1.1+
     3.5.0                            5.4.1+
    

    check gradle revisions

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