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+?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With