0

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

1 Answers1

0

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
Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841