uPhyca / gradle-android-aspectj-plugin

A Gradle plugin which enables AspectJ for Android builds.
Apache License 2.0
279 stars 55 forks source link

how to work with androidannotations? #23

Closed wangzhiqiang closed 9 years ago

wangzhiqiang commented 9 years ago

use android studio and build with gardlw . but

Error:Execution failed for task ':app:compileDebugAspectj'.

The import "x.x.xTabPageItemFragment_" cannot be resolved

"TabPageItemFragment_" is androidannotations compile source

Archinamon commented 9 years ago

My mind it should be resolved via execution order: :app:compileDebugAspectj should be executed AFTER :app:compileDebugJava_ (AA compile task). Maybe there exists some workaround for this situation?

wangzhiqiang commented 9 years ago

Thanks ! I have change to use AspectJ-gradle.

Archinamon commented 9 years ago

You can try my own plugin, based on this uPhica's one. AspectJ-gradle doesn't support native aspect language, that makes me to refuse using it. https://github.com/Archinamon/GradleAspectJ-Android