Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with android studio 2.2 #20

Closed
trinitron01 opened this issue Sep 21, 2016 · 11 comments · Fixed by #21
Closed

Not working with android studio 2.2 #20

trinitron01 opened this issue Sep 21, 2016 · 11 comments · Fixed by #21

Comments

@trinitron01
Copy link

trinitron01 commented Sep 21, 2016

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
Copy link

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
Copy link
Owner

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

@renaudcerrato
Copy link

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

Best!

@renaudcerrato
Copy link

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
Copy link
Contributor

strlght commented Oct 16, 2016

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
Copy link

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
#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
#20 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB12xShOfk--dbFs01rqp_dZM8oDHlFaks5q0osegaJpZM4KChG7
.

@Archinamon
Copy link
Owner

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
Copy link
Author

trinitron01 commented Oct 19, 2016

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
Copy link
Contributor

strlght commented Oct 19, 2016

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

@Archinamon
Copy link
Owner

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
Copy link
Author

trinitron01 commented Oct 19, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants