In Android Studio 2.1.3 experimental gradle not working?

I have a project in which I mix and maintain the regular Android Gradle plugin:

apply plugin: 'com.android.library'

and experimental Gradle Plugin as a library:

apply plugin: 'com.android.model.library'

In my general build.gradle, I have the following dependencies:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.google.gms:google-services:3.0.0'
        classpath 'com.android.tools.build:gradle-experimental:0.7.2'
        classpath 'com.android.tools.build:gradle:2.1.3'
    }
}

And now, after switching to Android 2.1.3, I get the following error right after Gradle Sync:

Gradle could not synchronize: Gradle version 2.10 is required. Current version> 2.14.1. If you are using a Gradle wrapper, try editing the distribution of Url in? > Blah blah blah

The following error is currently appearing in the IDE log of the Android IDE:

Called: org.gradle.api.internal.plugins.PluginApplicationException:> Failed to apply the plugin [class> 'com.android.build.gradle.model.AndroidComponentModelPlugin']

gradle -wrapper.properties, Gradle Sync:

: Gradle - 2.14.1. > 2.10. Gradle, Url > /Users/development/Desktop/android_msdk/xFAClient/Android/xFA/gradle/wrapp > er/gradle -wrapper.properties gradle -2.14 0,1-all.zip

...

...

+4
1

gradle 0.7.3:

     classpath 'com.android.tools.build:gradle-experimental:0.7.3'

gradle 2.14.1.

+4

Source: https://habr.com/ru/post/1651619/


All Articles