I have the following multi module project (see ima...
# ksp
d
I have the following multi module project (see image) which works just fine. Sources are beeing generated/added and the app works just fine. Now I wanted to use the processor in a new app, and added A, B and C to the project, using
Copy code
implementation(files("libs/B.aar"))
implementation(files("libs/A.jar"))
ksp(files("libs/C.jar"))
I'm getting the following error during kspDebugKotlin:
java.lang.NoClassDefFoundError: _*Class from module A*_
What am I doing wrong? EDIT: When adding A and B to KSP like so:
Copy code
ksp(files("libs/C.jar", "libs/A.jar", "libs/B.aar")
It does find the class from module A. Now it is still missing a dependency which is used in A and my current project. EDIT 2: After adding every dependency with ksp() it is working now.
j
files dependency aren’t transitive therefore you are only finding the dependencies you specified with
file()
, it sounds reasonable to me. Maybe you can use
ksp(project(":C")
?
1