Виталий Перятин
01/13/2023, 5:29 PMKotlin version 1.7.20
(Compose Multiplatform does not allow above), agp version 7.4.0-beta02
. In Gradle, I connected iOS target, locked all platform features on the iOS side. To build the ios module I use the command
./gradlew clean ios:iosDeployIPhone13Debug
As a result, I get an error (shortened version), where almost all project files are listed in Source files:
> Task :common:compileKotlinUikitX64 FAILED
e: Compilation failed: null cannot be cast to non-null type org.jetbrains.kotlin.ir.declarations.IrFunction
* Source files: AppDatabase.kt, AppDatabaseImpl.kt, AccountsEntity.kt, AccountsEntityQueries.kt, CategoriesEntity.kt, CategoriesEntityQueries.kt, CurrencyRatesEntity.kt, CurrencyRatesEntityQueries.kt, G....
I found only this issue in Google, which is very similar to my mistake, but in my project I checked that there are no expect functions with default values in any file. At the same time, the files that are listed in the Source files do not contain within themselves the code associated with Compose or expect / actual.
How to fix this error? In which direction should I look?Landry Norris
01/13/2023, 5:30 PMLandry Norris
01/13/2023, 5:31 PMВиталий Перятин
01/13/2023, 5:32 PMA note on the Kotlin version: 1.3.0-rc02 allows Kotlin 1.8.0And what kotlin
kotlinCompilerExtensionVersion
version should I use for Kotlin 1.8.0?Виталий Перятин
01/13/2023, 5:32 PMTry marking all Composable methods as internal. This fixed a similar issue for me.I try it, thank you
Landry Norris
01/13/2023, 5:33 PMLandry Norris
01/13/2023, 5:34 PMВиталий Перятин
01/13/2023, 5:35 PMnew forKotlin(version) method
please?
I can't find itLandry Norris
01/13/2023, 5:36 PMВиталий Перятин
01/13/2023, 6:08 PMinternal
a little bit helped me, but this error occurred againNikita Lipsky
01/13/2023, 7:40 PMbut this error occurred againPlease submit an issue with reproducible sample.