Good evening! What can I do when I get this error?...
# multiplatform
p
Good evening! What can I do when I get this error? The error:
Copy code
Build file '/home/paulstern/docs/dev/kmp-adreg/composeApp/build.gradle.kts' line: 5

Error resolving plugin [id: 'org.jetbrains.kotlin.android', version: '2.0.0']
> The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version, so compatibility cannot be checked.
Just in case you need it: https://github.com/Paul-Stern/kmp-adreg/tree/draft
d
You pass the plugin version in both root and subproject build.gradle files. With this Gradle cannot guarantee you pass the same version in both files and throws the error. You should pass the version in the root build.gradle file with apply false and use the plugin id without the version in the subproject build.gradle file. Alternatively, you can remove the plugin in the root project and apply it in every module with the version. Also, you can try to update your Gradle from 8.7 to 8.8 because it has some improvement for the version detection to avoid throwing the error.
p
Thank you. Seems fixed.
👍 1
282 Views