我导入了一个在Android studio中构建的旧项目,该项目使用的是Gradle 0.14.0。我现在正在使用Android Studio v 1.1.0。我被提示将Gradle插件从0.14.0更新到1.1.0。我也做了必要的改变。现在,我收到以下错误:
Error:(1, 0) No such property: GRADLE_SUPPORTED_VERSIONS for class: com.saikoa.dexguard.h
我的build.gradle是:
apply plugin: 'dexguard'
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion '20.0.0'
defaultConfig {
applicationId "com.appu.barat"
minSdkVersion 15
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
debug {
proguardFile getDefaultDexGuardFile('dexguard-debug.pro')
proguardFile 'dexguard-project.txt'
proguardFile 'proguard-project.txt'
}
release {
proguardFile getDefaultDexGuardFile('dexguard-release.pro')
proguardFile 'dexguard-project.txt'
proguardFile 'proguard-project.txt'
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.fasterxml.jackson.core:jackson-databind:2.4.1.2'
compile 'com.fasterxml.jackson.core:jackson-core:2.4.1.1'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.4.1'
compile 'com.mcxiaoke.volley:library:1.0.6'
compile 'ch.acra:acra:4.5.0'
}
buildscript
{
dependencies
{
classpath 'com.android.tools.build:gradle:1.1.0'
// classpath ':dexguard:'
}
}
你知道我能做些什么来解决上述错误吗?