我正在尝试在android studio中导入一个项目。导入后,当我尝试将其与Gradle同步时,它会显示Gradle Sync Failed. basic Functionality (e.g editing, debugging) will not work properly
。 Android Studio版本为1.5.1。以下是我试图运行的模块的build.gradle:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
classpath "com.squareup.retrofit:retrofit:1.2.2"
classpath "com.squareup.okhttp:okhttp:1.2.1"
}
}
当我尝试将gradle版本更新为1.0.0时。它说:
The Project is using an unsupported version of Gradle.
当我尝试将gradle版本更新为1.5.0时说:
Error:Gradle version 2.2 is required. Current version is 1.7.
If using the gradle wrapper, try editing the distributionUrl in
/Users/dubai1/ct-android/FlipNewsAppProject/FlipNewsApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.2-all.zip.
但是更改此内容也不会删除Gradle Sync failed error
。如何正确同步和运行?