我正在使用带有maven的aspectj,我收到了这个错误:
Error:Execution failed for task ':app:compileDebugAspectJ'.
构建配置错误:错误的sourceroot:/ Users / yosomite / Desktop / Workspace / AndroidWorkspace / HomeDecore / app / src / debug / java
我的Gradle是:
buildscript {
repositories {
mavenCentral()
maven() {
name 'RoboBinding AspectJPlugin Maven Repository'
url "https://github.com/RoboBinding/RoboBinding-aspectj-plugin/raw/master/mavenRepo"
//url "file://D:/git/RoboBinding-aspectj-plugin/mavenRepo"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.+'
classpath 'org.robobinding:aspectj-plugin:0.8.4'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'org.robobinding.android-aspectj'
android {
compileSdkVersion 22
buildToolsVersion "22.0.0"
defaultConfig {
minSdkVersion 14
targetSdkVersion 22
multiDexEnabled = false
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
//testInstrumentationRunner "android.test.InstrumentationTestRunner"
testApplicationId 'org.robobinding.gallerytest'
testHandleProfiling true
testFunctionalTest true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
buildTypes {
release {
minifyEnabled false
proguardFiles 'proguard-rules.pro'
}
}
lintOptions {
disable 'UnusedAttribute', 'ValidFragment', 'GradleDependency', 'OnClick', 'MissingPrefix', 'MenuTitle'
abortOnError false
}
packagingOptions {
exclude 'LICENSE.txt'
}
}
repositories {
mavenCentral()
maven() {
name 'SonaType snapshot repository'
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven() {
name 'RoboBinding Framework Maven Repository'
url "file://D:/git/RoboBinding/framework/mavenRepo"
}
maven() {
name 'RoboBinding CodeGen Maven Repository'
url "file://D:/git/RoboBinding/codegen/mavenRepo"
}
}
ext {
robobindingVersion = 'latest.integration'
//robobindingVersion = '0.8.8'
}
dependencies {
//compile fileTree(dir: 'libs', include: '*.jar')
compile ("org.robobinding:robobinding:${robobindingVersion}:with-aop") {
exclude group: 'com.google.guava'
}
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:cardview-v7:22.0.0'
compile 'com.android.support:recyclerview-v7:22.0.0'
compile 'com.google.guava:guava:16.0'
compile 'com.github.gabrielemariotti.cards:cardslib-core:2.0.1'
compile 'com.github.kikoso:SwipeableCards:1.1-RELEASE@aar'
compile 'com.lorentzos.swipecards:library:1.0.8@aar'
compile 'com.wunderlist:sliding-layer:1.1.1'
compile files('libs/ksoap2-android-assembly-2.6.5-jar-with-dependencies.jar')
compile files('libs/slider.jar')
compile 'io.reactivex:rxandroid:0.25.0'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.orhanobut:dialogplus:1.10@aar'
//aspectPath fileTree(dir: 'libs', include: '*.jar')
aspectPath "org.robobinding:robobinding:${robobindingVersion}:with-aop"
apt "org.robobinding:codegen:$robobindingVersion"
androidTestCompile('com.jakewharton.espresso:espresso-support-v4:1.1-r3') {
exclude group:'com.android.support', module:'support-v4'
exclude group:'com.android.support', module:'appcompat-v7'
exclude group: 'com.google.guava'
}
dependencies {
repositories {
mavenCentral()
}
compile 'com.sothree.slidinguppanel:library:3.0.0'
}
}
摇篮同步没有任何错误,但在运行应用程序时会抛出错误。任何有可能解决方案的人?