我用android-studio构建了一个应用程序。但是当我尝试编译项目时我收到错误
Error:No such property: bootClasspath for class: com.android.build.gradle.AppPlugin
我没有弄到我的错误。 这是我的build.gradle文件。如果有更多需要,请询问
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.uphyca.gradle:gradle-android-aspectj-plugin:0.9.8'
}
}
apply plugin: 'com.android.application'
apply plugin: 'android-aspectj'
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.xxxx.app"
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName "1.0"
testApplicationId "com.xxxx.app.activity.tests"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
monkeytalk.initWith(buildTypes.debug)
monkeytalk {
applicationIdSuffix ".monkey"
}
}
productFlavors {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
sourceSets {
unitTest {
java.srcDir file('src/androidTest/java')
// resources.srcDir file('src/androidTest/resources')
}
}
configurations {
unitTestCompile.extendsFrom runtime
unitTestRuntime.extendsFrom unitTestCompile
}
// add the unitTest task
task unitTest(type:Test) {
description = "run unit tests"
testClassesDir = project.sourceSets.unitTest.output.classesDir
classpath = project.sourceSets.unitTest.runtimeClasspath
}
dependencies {
compile 'com.android.support:support-v4:21.0.0'
compile 'com.google.android.gms:play-services:6.1.71'
compile project(':facebook')
compile 'com.google.android:android-test:2.1_r1'
compile 'junit:junit:3.8.1'
compile fileTree(dir: 'libraries', include: ['*.jar'])
monkeytalkCompile fileTree(dir: 'monkey-libs', include: ['*.jar'])
compile 'org.apache.httpcomponents:httpmime:4.3.6'
compile 'org.apache.httpcomponents:httpcore'
compile 'joda-time:joda-time:2.3'
compile files('libraries/achartengine-1.1.0.jar')
}
android {
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
}
}
任何帮助都将不胜感激。