Butterknife plugin in Gradle 8.5.1

Author: MBalazs1234Created Jul 24, 2024Updated Jul 24, 2024

I am working on a legacy code system and first I am working on migrating the Gralde plugins. I saw in order to generate R2 I need to apply apply plugin: 'com.jakewharton.butterknife' but now I have to register the plugin first. I tried adding the plugin like this:

butterknife = "10.2.3"
butterknife-plugin = { id = "com.jakewharton.butterknife", version.ref = "butterknife" }

and registering it:

alias(libs.plugins.butterknife.plugin) apply false

But it throws an error:

* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.jakewharton.butterknife', version: '10.2.3', apply: false] was not found in any of the following sources: