Archinamon / android-gradle-aspectj

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

Not working with android studio 2.2 #20

Closed trinitron01 closed 7 years ago

trinitron01 commented 7 years ago

When using the latest stable Android Studio 2.2 with gradle plugin 2.2.0 compilation fails with the following error :

Error:Cause: com.android.build.gradle.AppPlugin cannot be cast to groovy.lang.GroovyObject

renaudcerrato commented 7 years ago

Another issue here:

Error:Unable to load class 'com.android.builder.signing.SignedJarBuilder$IZipEntryFilter'.
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Archinamon commented 7 years ago

Will be able to look around this issue in first dates of October.

renaudcerrato commented 7 years ago

Hi Edgar ! Did you had a look to it yet?

Best!

renaudcerrato commented 7 years ago

any update? Shall we consider the development as stopped and move forward? Migrating to Gradle plugin 2.2 is highly wanted because of the built-in apt processor

strlght commented 7 years ago

Hey everyone.

Fixed this issue, for more information you can check out request #21. If you want fix right now, I created branch with updated artifact.

renaudcerrato commented 7 years ago

Thanks! Will wait for the official release.

Le dim. 16 oct. 2016 16:37, Grigoriy Dzhanelidze notifications@github.com a écrit :

Hey everyone.

Fixed this issue, for more information you can check out request #21 https://github.com/Archinamon/GradleAspectJ-Android/pull/21. If you want fix right now, I created branch https://github.com/StrLght/GradleAspectJ-Android/tree/gradle-2.2-artifact with updated artifact.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Archinamon/GradleAspectJ-Android/issues/20#issuecomment-254072998, or mute the thread https://github.com/notifications/unsubscribe-auth/AB12xShOfk--dbFs01rqp_dZM8oDHlFaks5q0osegaJpZM4KChG7 .

Archinamon commented 7 years ago

Wow. Good to see somebody else commits :) Sorry for my absence, I was too busy :( Will look PR today. Also, does anyone has issues with 2.+ plugin and multidex? On my proj I've got misterious crash with invalid bytecode error, hehe.

trinitron01 commented 7 years ago

I am still having an error when using the latest version (using gradle 2.2.1 and aspectj 2.0.2, android studio 2.2.1) :

Error:Unable to load class 'com.android.builder.signing.SignedJarBuilder$IZipEntryFilter'. Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) <a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. <a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

when I try the clean option on the build I get

Error:(4, 1) A problem occurred evaluating project com/android/builder/signing/SignedJarBuilder$IZipEntryFilter

strlght commented 7 years ago

This is fixed in AspectJ plugin 2.0.3, update your dependency and it should be fine😀

Archinamon commented 7 years ago

I faced a problem with transformer, so dunno will it work properly yet) Hope, I'll finish it today :) You can try 2.0.3 yeah, thanks to @StrLght!

trinitron01 commented 7 years ago

Yeah thanks, exactly, that fixed that, however as @Archinamon mentioned there are still issues with compiling a multidex project with gradle 2+ plugin..

Execution failed for task ':app:transformClassesWithExtractJarsForDebug'.

all working fine with aspectj plugin 1.3.1 and gradle 2.1.3