Anybody has idea on how to fix this. After upgradi...
# compose-android
k
Anybody has idea on how to fix this. After upgrading the compiler to 1.5.2 or 1.5.3 project not compiling
Copy code
java.lang.Exception: IR lowering failed at: SettingsViewModel.kt
	at androidx.compose.compiler.plugins.kotlin.lower.DeepCopyIrTreeWithRemappedComposableTypes.visitFile(ComposableTypeRemapper.kt:523)
	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitFile(IrElementTransformerVoid.kt:48)
	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitFile(IrElementTransformerVoid.kt:24)
	at org.jetbrains.kotlin.ir.declarations.IrFile.accept(IrFile.kt:31)
	at org.jetbrains.kotlin.ir.declarations.IrFile.transform(IrFile.kt:34)
	at org.jetbrains.kotlin.ir.declarations.IrFile.transform(IrFile.kt:22)
	at org.jetbrains.kotlin.ir.util.TransformKt.transformInPlace(transform.kt:35)
	at org.jetbrains.kotlin.ir.declarations.IrModuleFragment.transformChildren(IrModuleFragment.kt:52)
	at androidx.compose.compiler.plugins.kotlin.lower.ComposerParamTransformer.lower(ComposerParamTransformer.kt:127)
	at androidx.compose.compiler.plugins.kotlin.ComposeIrGenerationExtension.generate(ComposeIrGenerationExtension.kt:162)
	at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr$lambda$1(JvmIrCodegenFactory.kt:222)
	at org.jetbrains.kotlin.psi2ir.Psi2IrTranslator.generateModuleFragment(Psi2IrTranslator.kt:107)
	at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr(JvmIrCodegenFactory.kt:255)
	at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr(JvmIrCodegenFactory.kt:59)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.convertToIr(KotlinToJVMBytecodeCompiler.kt:224)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:101)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli$default(KotlinToJVMBytecodeCompiler.kt:47)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:168)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:53)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:100)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:46)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:101)
	at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:460)
	at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:62)
	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.doCompile(IncrementalCompilerRunner.kt:476)
	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl(IncrementalCompilerRunner.kt:399)
	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileNonIncrementally(IncrementalCompilerRunner.kt:280)
	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:124)
	at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:636)
	at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:101)
	at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1598)
	at jdk.internal.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:360)
	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
	at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:587)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:705)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: kotlin.UninitializedPropertyAccessException: lateinit property parent has not been initialized
	at org.jetbrains.kotlin.ir.declarations.impl.IrConstructorImpl.getParent(IrConstructorImpl.kt:40)
	at org.jetbrains.kotlin.ir.util.AdditionalIrUtilsKt.getConstructedClass(AdditionalIrUtils.kt:26)
	at org.jetbrains.kotlin.ir.util.AdditionalIrUtilsKt.getAnnotationClass(AdditionalIrUtils.kt:103)
	at org.jetbrains.kotlin.ir.util.AdditionalIrUtilsKt.hasAnnotation(AdditionalIrUtils.kt:125)
	at androidx.compose.compiler.plugins.kotlin.lower.DeepCopyIrTreeWithRemappedComposableTypes.isComposable(ComposableTypeRemapper.kt:407)
	at androidx.compose.compiler.plugins.kotlin.lower.DeepCopyIrTreeWithRemappedComposableTypes.needsComposableRemapping(ComposableTypeRemapper.kt:222)
	at androidx.compose.compiler.plugins.kotlin.lower.DeepCopyIrTreeWithRemappedComposableTypes.needsComposableRemapping(ComposableTypeRemapper.kt:223)
	at androidx.compose.compiler.plugins.kotlin.lower.DeepCopyIrTreeWithRemappedComposableTypes.needsComposableRemapping(ComposableTypeRemapper.kt:210)
	at androidx.compose.compiler.plugins.kotlin.lower.DeepCopyIrTreeWithRemappedComposableTypes.visitSimpleFunction(ComposableTypeRemapper.kt:94)
	at androidx.compose.compiler.plugins.kotlin.lower.DeepCopyIrTreeWithRemappedComposableTypes.visitSimpleFunction(ComposableTypeRemapper.kt:73)
	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitSimpleFunction(IrElementTransformerVoid.kt:73)
	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitSimpleFunction(IrElementTransformerVoid.kt:24)
	at org.jetbrains.kotlin.ir.declarations.IrSimpleFunction.accept(IrSimpleFunction.kt:37)
	at org.jetbrains.kotlin.ir.IrElementBase.transform(IrElementBase.kt:24)
	at org.jetbrains.kotlin.ir.util.DeepCopyIrTreeWithSymbols.transformDeclarationsTo(DeepCopyIrTreeWithSymbols.kt:870)
	at org.jetbrains.kotlin.ir.util.DeepCopyIrTreeWithSymbols.visitClass(DeepCopyIrTreeWithSymbols.kt:169)
	at androidx.compose.compiler.plugins.kotlin.lower.DeepCopyPreservingMetadata.visitClass(DeepCopyPreservingMetadata.kt:42)
	at androidx.compose.compiler.plugins.kotlin.lower.DeepCopyPreservingMetadata.visitClass(DeepCopyPreservingMetadata.kt:31)
	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitClass(IrElementTransformerVoid.kt:67)
	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitClass(IrElementTransformerVoid.kt:24)
	at org.jetbrains.kotlin.ir.declarations.IrClass.accept(IrClass.kt:73)
	at org.jetbrains.kotlin.ir.IrElementBase.transform(IrElementBase.kt:24)
	at org.jetbrains.kotlin.ir.util.DeepCopyIrTreeWithSymbols.transformDeclarationsTo(DeepCopyIrTreeWithSymbols.kt:870)
	at org.jetbrains.kotlin.ir.util.DeepCopyIrTreeWithSymbols.visitFile(DeepCopyIrTreeWithSymbols.kt:118)
	at androidx.compose.compiler.plugins.kotlin.lower.DeepCopyPreservingMetadata.visitFile(DeepCopyPreservingMetadata.kt:37)
	at androidx.compose.compiler.plugins.kotlin.lower.DeepCopyIrTreeWithRemappedComposableTypes.visitFile(ComposableTypeRemapper.kt:109)
	... 46 more
gratitude thank you 1
t
Did you increased the kotlin version to 1.9.10?
k
yes did