Hi, I'm trying to add KSP to my multiplatform lib ...
# multiplatform
m
Hi, I'm trying to add KSP to my multiplatform lib (here: https://github.com/maicol07/spraypaintkt/tree/ksp) but I get this error when I sync the project:
Copy code
:processor:main: Could not resolve project :annotation.
Required by:
    project :processor

Possible solution:
 - Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
Any idea on how to fix it? Thanks
r
:annotation
doesn't have a jvm target required by
:processor
(android doesn't count). You have to add a
jvm { }
block inside the :annotation gradle's
kotlin { }
block.
m
Thank you! It worked!
🙌 1