Archinamon / android-gradle-aspectj

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

Android Studio 3.0 #70

Open fabianbergmark opened 6 years ago

fabianbergmark commented 6 years ago

It doesn't seem like this plugin works in AS 3.0

When I run a gradle task like :app:compileDevDebugAspectJ I get

Skipping task ':app:compileDevDebugAspectJ' as it has no source files and no previous output files. :app:compileDevDebugAspectJ NO-SOURCE

and my aspects don't affect the code.

Is there a known bug with AS 3.0 and if so, any timeline for when it will be supported? Would you recommend any other plugin/solution in the meanwhile?

Archinamon commented 6 years ago

Compiler doesn't demand on AS version. Skipping task ':app:compileDevDebugAspectJ' means you have no .aj files to compile. You may look for transformDevDebugClassesWithAspectJ task for more details. It should generate ajc-transform.log file in /app/build directory.

fabianbergmark commented 6 years ago

Thanks, the log output seems fine!

However, whenever I use your plugin and then does a clean, I get a lot of the following output:

Could not resolve all files for configuration ':app:prodDebugCompileClasspath'.

Failed to transform file '....jar' to match attributes {artifactType=android-classes} using transform JarTransform Transform output file ....jar does not exist.

any idea?

Archinamon commented 6 years ago

Dunno :( Could you provide full gradle log running build with --stacktrace --info keys? And ajc-transform.log would be useful too :)

fabianbergmark commented 6 years ago

Can I email you? I rather not publish all logs publicly here

Archinamon commented 6 years ago

Sure. @gmail.com or @yandex.ru with my gh nickname.

fabianbergmark commented 6 years ago

I sent you an email :)

neteinstein commented 6 years ago

Any update on this?

Archinamon commented 6 years ago

This issue faced with java 8 compatibility. Will fix it in a new version of plugin. I dunno when exactly I will have enough time to release it :(

kirtan403 commented 6 years ago

Same problem here. Nothing happens with AS 3.0.1. I can't event see any tasks with AspectJ names.

@Archinamon Request you to please look into it. Thank you so much for the great plugin btw! 👍

apoorvbhatt14 commented 6 years ago

Error:Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.

Failed to transform file 'core.jar' to match attributes {artifactType=android-classes} using transform JarTransform

can you please tell me what can i do to solved this issue....

Grey-Bit commented 6 years ago

Is there any workaround like blocking Java 8 if it has compatibility issues with this plugin?