Archinamon / android-gradle-aspectj

gradle plug-in adding supports of AspectJ into Android project
Apache License 2.0
365 stars 58 forks source link

Aspectj-ext 4.2.1 and AGP 4 hangs for multi-module app when using includeJar on feature module #126

Closed davidwong closed 3 years ago

davidwong commented 4 years ago

When using aspectj-ext plugin with AGP 4.0.1 (also 4.0) in a app with multiple modules, using includeJar for a dependency module hangs the build process at app at app:dexBuilderDebug. It used to work OK with AGP 3.x and the older version of the plugin.

Wrote a demo app to show the problem: AspectJTest.zip

The app has the app module with the aspect, and a base module that the app module depends on.

Was wondering if anyone has successfully used the aspectj plugin successfully for app with feature modules.

davidwong commented 3 years ago

Just closing this issue as AGP and plugin versions have moved on. Don't know if this has been fixed, but getting around it by using the standard version of the plugin in each module instead.