android - Gradle version 1.6 is required. Current version is 1.8 -


I'm trying to make your Android app in Android Studio, but I got the following error:

< Former> Grade: A problem that evaluates the project: Library: Facebook '& Gt; Gradual version 1.6 is required. The current version is 1.8

How can I fix this?

  buildscript {{treasures Maven {url 'http://repo1.maven.org/maven2'}} {dependence classpath: I do not know what's wrong with my build.gradle file 'com.android.tools.build:gradle:0.4'}} plugin apply: 'android- library' dependence {files ( 'libs / android- support v4.jar')} Android {compileSdkVersion 17 buildToolsVersion compilation "17.0 .0 "defaultConfig {minSdkVersion 7 targetSdkVersion 16} sourceSets {{main manifest.srcFile 'AndroidManifest.xml' java.srcDirs = [ 'src'] resources.srcDirs = [ 'src'] res.srcDirs = [ 'Race']} }}  

How can I fix this? Thanks in advance.

Update Android Studio in the last release. Then change:

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

your Gradle / casing / Gradle- Modify the wrapper .properties to use Gradle version 1.10.

In addition to improving your script, you can compile files ( 'libs line

  change / android- support v4.jar') < / Code> 

with

  compilation 'com.android.support:support-v4:18.0.0' // or 19.0 1  

There is a connection between IDE, gradle-plugin and gradle version.


Comments