Closed ss0930 closed 1 year ago
@ss0930 would you be able to share a sample project where I can repro this
@vinaygaba turns out this issue was due to a unit test compilation error and coming from Showkase even though the stacktrace seemed to indicate that. Fixing the compilation error fixed this issue. Closing this.
Hello,
I am getting the following error only when a module is applying
com.google.devtools.ksp
(used for something else)error: com.airbnb.android.showkase.processor.exceptions.ShowkaseProcessorException: Showkase was not able to find the root class that youpassed to @ShowkaseScreenshot. Make sure that you have configured Showkase correctly.
build.gradle
Root Module class
Snapshot Test
I have 2 modules
Module A with the above config which throws the following error on build
Showkase was not able to find the root class that youpassed to @ShowkaseScreenshot
Module B without
apply plugin: 'com.google.devtools.ksp'
builds successfullyThe
@RootModule
class is in the main source set. I am not sure why it works for 1 module but not for the other. I saw same error in https://github.com/airbnb/Showkase/issues/212 but not sure if it applies. Could you please provide some insight?KSP Migration
I tried migrating to
ksp
with the following changes from the above config :Module A fails with
Module B builds successfully