Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Incompatible version of android studio with the Gradle version used

My android-studio version is the latest 2.1.3,and I am try to update gradle to gradle-3.0-all with plugin 2.2.0-beta3. When I build it was ok but when run the ide report that "Incompatible version of android studio with the Gradle version used." How can I resolve this?Should I use android-studio 2.2+?

like image 751
Castle Avatar asked Feb 07 '23 06:02

Castle


1 Answers

Just use the latest stable version of the gradle distribution and the gradle plugin for android:

In build.gradle:

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

In gradle/wrapper/gradle-wrapper.properties:

distributionUrl = https\://services.gradle.org/distributions/gradle-2.14-all.zip

Currently the version of gradle 3.x is not officially supported.

like image 68
Gabriele Mariotti Avatar answered Feb 13 '23 07:02

Gabriele Mariotti