How to update gradle in android studio?

前端 未结 14 2235
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:31

    Open your root build.gradle file and change Gradle version like this

    Old version:

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

    New version:

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

    For Gradle version compatibility see this.

提交回复
热议问题