Zhiqiang Bian
09/28/2021, 6:48 PMkotlinx-datetime
for KMM development.
In my androidApp/build.gradle.kts
, if I set debuggable
to true
, then it works well. But if I set debuggable
to false
(for release), the app will crash immediately when executing any kotlinx-datetime
code (in common folder).
Does anyone know the reason?louiscad
09/28/2021, 10:29 PMZhiqiang Bian
09/29/2021, 10:56 AMisDebuggable
option is set to false. It feels like the option somehow broke the coreLibraryDesugaring
but I am not sure.louiscad
09/29/2021, 1:00 PMZhiqiang Bian
09/29/2021, 3:04 PMkotlinx.datetime
dependency into the common module. I fixed the issue by adding it into androidApp/build.gradle.kts
although it is not used in androidApp. And the interesting fact is that the issue only happens when debuggable=false
.