# Unable to apply custom plugin

**URL:** <https://discuss.gradle.org/t/unable-to-apply-custom-plugin/19765>\
**Category:** Help/Discuss\
**Created:** [September 28, 2016, 5:27am UTC](https://discuss.gradle.org/t/unable-to-apply-custom-plugin/19765 "2016-09-28T05:27:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sathyakumars](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@sathyakumars](https://discuss.gradle.org/u/sathyakumars)\
**Post date:** [September 28, 2016, 5:27am UTC](https://discuss.gradle.org/t/unable-to-apply-custom-plugin/19765/1 "2016-09-28T05:27:50Z")

</div>

This was working yesterday, But since I started making changes to my plugin I have been unable to apply plugin anymore (though I have reverted most of the changes and dependencies).

```
A problem occurred evaluating project ':aws'.
> Failed to apply plugin [id 'xxxx.aws']
   > Could not find which method apply() to invoke from this list:
       public abstract void org.gradle.api.plugins.PluginManager#apply(java.lang.Class)
       public abstract void org.gradle.api.plugins.PluginManager#apply(java.lang.String)
       public abstract void org.gradle.api.internal.plugins.PluginManagerInternal#apply(org.gradle.api.internal.plugins.PluginImplementation)

```

Am trying to understand, whats the possible reason for the above.  
And some more detail is that my plugin was coded with gradle 3, but the project thats using the applying the plugin is running gradle 2.3

---

<div class="post-metadata">

**Author:** ![sathyakumars](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@sathyakumars](https://discuss.gradle.org/u/sathyakumars)\
**Post date:** [September 28, 2016, 5:41am UTC](https://discuss.gradle.org/t/unable-to-apply-custom-plugin/19765/2 "2016-09-28T05:41:32Z")

</div>

My bad. It was a problem with my plugin code.
