Thread
#compose
    s

    Skolson5903

    1 year ago
    Is anyone having build issues with a compose app using the new 1.5.30 kotlin release? I have an app that builds and debugs fine using 1.5.21. Today I tried to upgrade the kotlin version in the gradle build to 1.5.30. Sync worked fine, but a build of the app fails in the compileDebugKotlin build task with the call stack below. (I went back to 1.5.21 and am working again.) Anyone else seen something like this (moved call stack to thread)?
    t

    trevjones

    1 year ago
    k

    Kirill Grouchnikov

    1 year ago
    You can't move "up" to a newer Kotlin version without a newer version of Compose that supports it. There is no Compose version at the moment that supports 1.5.30
    Also do not flood the channel with stack traces
    If needed, put them in the thread
    s

    Skolson5903

    1 year ago
    e: java.lang.NoSuchMethodError: 'org.jetbrains.kotlin.ir.types.IrType org.jetbrains.kotlin.backend.jvm.lower.inlineclasses.InlineClassAbi.getUnderlyingType(org.jetbrains.kotlin.ir.declarations.IrClass)'
       at androidx.compose.compiler.plugins.kotlin.lower.AbstractComposeLowering.unboxType(AbstractComposeLowering.kt:288)
       at androidx.compose.compiler.plugins.kotlin.lower.AbstractComposeLowering.unboxInlineClass(AbstractComposeLowering.kt:250)
       at androidx.compose.compiler.plugins.kotlin.lower.ComposerParamTransformer.defaultValue(ComposerParamTransformer.kt:288)
       at androidx.compose.compiler.plugins.kotlin.lower.ComposerParamTransformer.defaultValue$default(ComposerParamTransformer.kt:273)
       at androidx.compose.compiler.plugins.kotlin.lower.ComposerParamTransformer.defaultArgumentFor(ComposerParamTransformer.kt:257)
       at androidx.compose.compiler.plugins.kotlin.lower.ComposerParamTransformer.withComposerParamIfNeeded(ComposerParamTransformer.kt:210)
       at androidx.compose.compiler.plugins.kotlin.lower.ComposerParamTransformer$copyWithComposerParam$2$2.visitCall(ComposerParamTransformer.kt:640)
       at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitCall(IrElementTransformerVoid.kt:199)
       at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitCall(IrElementTransformerVoid.kt:24)
       at org.jetbrains.kotlin.ir.expressions.impl.IrCallImpl.accept(IrCallImpl.kt:47)
       at org.jetbrains.kotlin.ir.expressions.IrExpression.transform(IrExpression.kt:33)
       at org.jetbrains.kotlin.ir.expressions.IrExpression.transform(IrExpression.kt:26)
       at org.jetbrains.kotlin.ir.expressions.IrBlockBody.transformChildren(IrBody.kt:62)
       at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitBody(IrElementTransformerVoid.kt:108)
       at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitBlockBody(IrElementTransformerVoid.kt:117)
       at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitBlockBody(IrElementTransformerVoid.kt:118)
       at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitBlockBody(IrElementTransformerVoid.kt:24)
       at org.jetbrains.kotlin.ir.expressions.IrBlockBody.accept(IrBody.kt:54)
       at org.jetbrains.kotlin.ir.expressions.IrBody.transform(IrBody.kt:27)
       at org.jetbrains.kotlin.ir.declarations.IrFunction.transformChildren(IrFunction.kt:68)
       at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoidKt.transformChildrenVoid(IrElementTransformerVoid.kt:330)
       at androidx.compose.compiler.plugins.kotlin.lower.ComposerParamTransformer.copyWithComposerParam(ComposerParamTransformer.kt:593)
       at androidx.compose.compiler.plugins.kotlin.lower.ComposerParamTransformer.withComposerParamIfNeeded(ComposerParamTransformer.kt:375)
       at androidx.compose.compiler.plugins.kotlin.lower.ComposerParamTransformer.visitFunction(ComposerParamTransformer.kt:153)
       at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitSimpleFunction(IrElementTransformerVoid.kt:72)
       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:28)
       at org.jetbrains.kotlin.ir.IrElement$DefaultImpls.transform(IrElement.kt:32)
       at org.jetbrains.kotlin.ir.IrElementBase.transform(IrElementBase.kt:19)
       at org.jetbrains.kotlin.ir.declarations.impl.IrFileImpl.transformChildren(IrFileImpl.kt:89)
       at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitPackageFragment(IrElementTransformerVoid.kt:41)
       at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitFile(IrElementTransformerVoid.kt:47)
       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.impl.IrFileImpl.accept(IrFileImpl.kt:81)
       at org.jetbrains.kotlin.ir.declarations.IrFile.transform(IrFile.kt:52)
       at org.jetbrains.kotlin.ir.declarations.impl.IrModuleFragmentImpl.transformChildren(IrModuleFragmentImpl.kt:45)
       at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoidKt.transformChildrenVoid(IrElementTransformerVoid.kt:330)
       at androidx.compose.compiler.plugins.kotlin.lower.ComposerParamTransformer.lower(ComposerParamTransformer.kt:117)
       at androidx.compose.compiler.plugins.kotlin.ComposeIrGenerationExtension.generate(ComposeIrGenerationExtension.kt:118)
       at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr$lambda-1(JvmIrCodegenFactory.kt:126)
       at org.jetbrains.kotlin.psi2ir.Psi2IrTranslator.generateModuleFragment(Psi2IrTranslator.kt:89)
       at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr(JvmIrCodegenFactory.kt:146)
       at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr$default(JvmIrCodegenFactory.kt:64)
       at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.generateModule(JvmIrCodegenFactory.kt:59)
       at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.compileCorrectFiles(KotlinCodegenFacade.java:35)
       at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.generate(KotlinToJVMBytecodeCompiler.kt:321)
       at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:113)
       at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli$default(KotlinToJVMBytecodeCompiler.kt:56)
       at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:169)
       at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:52)
       at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:92)
       at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:44)
       at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:98)
       at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:412)
       at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:112)
       at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally(IncrementalCompilerRunner.kt:358)
       at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally$default(IncrementalCompilerRunner.kt:300)
       at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl$rebuild(IncrementalCompilerRunner.kt:119)
       at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl(IncrementalCompilerRunner.kt:170)
       at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:81)
       at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:607)
       at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:96)
       at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1658)
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.base/java.lang.reflect.Method.invoke(Method.java:564)
       at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
       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:691)
       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:391)
       at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
       at java.base/java.lang.Thread.run(Thread.java:832)
    message has been deleted
    Thanks for the info!
    k

    Kirill Grouchnikov

    1 year ago
    There's no need for this stack trace anymore. What you're trying to do is not supported