uPhyca / gradle-android-aspectj-plugin

A Gradle plugin which enables AspectJ for Android builds.
Apache License 2.0
279 stars 55 forks source link

Error on build.gradle when adding the plugin #22

Closed sergiomarqmoura closed 9 years ago

sergiomarqmoura commented 9 years ago

Hello,

I am getting the following error when I try to sync my build.grade after editing it as you have on the README.md file

Error:(16, 0) Could not find matching constructor for: org.gradle.api.GradleException(org.gradle.api.GradleException)

Just for me to be clear, I don't need to add any folder to my project right? Since grade automatically downloads all the required libraries when I specify the classpath in dependencies and I write the apply plugin: 'android-aspectj' on build.grade.

Thanks in advance

esmasui commented 9 years ago

Hello, Could you please send me the stack trace. Thanks,

nsiitk commented 9 years ago

I am also facing the same issue. Its due to GradleException constructor on line 28. it should be public GradleException(String message, Throwable cause) the string message part is missing.

Caused by: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.gradle.api.GradleException(org.gradle.api.GradleException) at com.uphyca.gradle.android.AndroidAspectJPlugin.apply(AndroidAspectJPlugin.groovy:28) at com.uphyca.gradle.android.AndroidAspectJPlugin.apply(AndroidAspectJPlugin.groovy) at org.gradle.api.internal.plugins.ImperativeOnlyPluginApplicator.applyImperative(ImperativeOnlyPluginApplicator.java:35) at org.gradle.api.internal.plugins.RuleBasedPluginApplicator.applyImperative(RuleBasedPluginApplicator.java:43) at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:144)