Skip to content Skip to sidebar Skip to footer

When I Apply Aspectj To Android Project With Androidannotations Not Work

I'm using Androidstudio 0.8.9 and build with gradle. I was using Android-Annotations and works well. And I want use AspectJ also, so apply plugin(https://github.com/uPhyca/gradle-a

Solution 1:

Instead of AspectJ plugin - com.uphyca.gradle:gradle-android-aspectj-plugin' try to use https://github.com/Archinamon/GradleAspectJ-Android for dagger+aspectj plugin integration.

First add a maven repo link into your repositories block of module build file:

maven { url 'https://github.com/Archinamon/GradleAspectJ-Android/raw/master' }

Add the plugin to your buildscript's dependencies section:

classpath 'com.archinamon:AspectJ-gradle:1.0.15'

Apply the aspectj plugin:

apply plugin: 'com.archinamon.aspectj'

Now build your project and run.

Post a Comment for "When I Apply Aspectj To Android Project With Androidannotations Not Work"