android-gradle-aspectj icon indicating copy to clipboard operation
android-gradle-aspectj copied to clipboard

Android Studio 3.0

Open fabianbergmark opened this issue 8 years ago • 11 comments
trafficstars

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?

fabianbergmark avatar Nov 17 '17 07:11 fabianbergmark

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.

Archinamon avatar Nov 17 '17 09:11 Archinamon

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?

fabianbergmark avatar Nov 17 '17 09:11 fabianbergmark

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

Archinamon avatar Nov 17 '17 11:11 Archinamon

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

fabianbergmark avatar Nov 17 '17 12:11 fabianbergmark

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

Archinamon avatar Nov 17 '17 17:11 Archinamon

I sent you an email :)

fabianbergmark avatar Nov 22 '17 12:11 fabianbergmark

Any update on this?

neteinstein avatar Jan 18 '18 17:01 neteinstein

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 :(

Archinamon avatar Jan 25 '18 14:01 Archinamon

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! 👍

kirtan403 avatar Feb 05 '18 12:02 kirtan403

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....

apoorvbhatt14 avatar Mar 12 '18 10:03 apoorvbhatt14

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

Grey-Bit avatar Jul 09 '18 09:07 Grey-Bit