https://kotlinlang.org logo
#ksp
Title
# ksp
c

Császár Ákos

03/19/2024, 7:26 AM
Hi! I decided to try out KSP, but I am stuck already at the setup. I tried to follow the examples but I am getting the following error
Copy code
java.lang.ClassNotFoundException: TestProcessorProvider
	at java.base/java.net.URLClassLoader.findClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Unknown Source)
The TestProcessorProvider is registered in
resources/META-INF/services/com.google.devtools.ksp.processing.SymbolProcessorProvider
. Can somebody tell me, what am I missing?
Solved. For some reason in the examples, the
com.google.devtools.ksp.processing.SymbolProcessorProvider
file contains only the class name, but I needed to add the fully qualified name
your.domain.processor.TestProcessorProvider
👍 1
3 Views