这是我的 build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 14
targetSdkVersion 18
}
}
dependencies {
compile 'com.android.support:support-v4:+'
compile file 'volley.jar'
}
当我尝试构建它时,出现此错误:
Gradle: A problem occurred evaluating project ':Name'.
> No such property: file for class: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
如果我尝试会出现同样的错误
gradle clean
在项目目录中