Aftab Ahmad
02/26/2024, 4:23 PMkotlinx-serialization
is failing when the K2 kapt flag (kapt.use.k2=true)
is enabled:
> Task :app:kaptGenerateStubsDebugKotlin
w: K2 kapt is an experimental feature. Use with caution.
> Task :app:kaptDebugKotlin FAILED
serialization/app/build/tmp/kapt3/stubs/debug/com/sample/serialization/response/SampleResponse.java:94: error: illegal '.'
public static final com.sample.serialization.response.SampleResponse..serializer INSTANCE = null;
I filed a ticket on the kotlinx-serialization repo but not sure if that was the best place as the issue surfaces there but the bug might is in K2 kaptdmitriy.novozhilov
02/26/2024, 5:19 PM