Arun Ravichandran
Arun Ravichandran

Reputation: 208

After importing eclipse project to android studio 1.4 ,getting Gradle plugin error

Error:(1, 1) A problem occurred evaluating project ':App Lite'.

Failed to apply plugin [id 'com.android.application'] Gradle version 1.10 is required. Current version is 2.4. If using the gradle wrapper, try editing the distributionUrl in /home/AppLite/gradle/wrapper/gradle-wrapper.properties to gradle-1.10-all.zip

Upvotes: 0

Views: 273

Answers (1)

Gabriele Mariotti
Gabriele Mariotti

Reputation: 364868

You have to update the gradle-plugin for Android and gradle version. They are different. You can find more info about the android plugin here

With the classpath inside your gradle files, you set the version of the android plugin for Gradle.

Change your classpath using:

classpath 'com.android.tools.build:gradle:1.3.1'

In the gradle/wrapper/gradle-wrapper.properties file you set the version of the Gradle. For example the 2.4 version.

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

Upvotes: 0

Related Questions