https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
compose
  • m

    Mehdi Haghgoo

    08/30/2020, 8:38 AM
    Does a Composer need to learn Flow?
    g
    • 2
    • 1
  • a

    Alexander Sitnikov

    08/30/2020, 10:58 AM
    With Compose, do we really need an activity to be destroyed and recreated? As per docs:
    The restart behavior is designed to help your application adapt to new configurations by automatically reloading your application with alternative resources that match the new device configuration.
    But compose screen can easily recompose with new configuration without having to restart an activity. Or if resources are read inside composable function via
    dimensionResource()
    etc, we still need to recreate activity?
    a
    m
    • 3
    • 4
  • d

    dimsuz

    08/30/2020, 11:11 AM
    What's the pattern to pass state up the component tree? Use case: I have some deep child scrollable component, and I want to display a scroll position in the parent. I guess I should pass the mutable state down to this component and observe it in the parent, correct?
    :yes: 2
    h
    d
    • 3
    • 4
  • f

    florent

    08/30/2020, 12:11 PM
    Hi, in term of performance, it is something that is gonna be improved with the next releases? After playing with the example code, I don't find them super fluid on a Samsung S10e, you can notice some frame drop when you interact with the UI. Thanks 😁!
    c
    t
    a
    • 4
    • 3
  • c

    carbaj0

    08/30/2020, 3:23 PM
    @Composable
    private fun ZoomControls(
        zoom: Float,
        onZoomChanged: (Float) -> Unit
    ) {
        Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.Center) {
            ZoomButton("-", onClick = { onZoomChanged(zoom * 0.8f) })
            ZoomButton("+", onClick = { onZoomChanged(zoom * 1.2f) })
        }
    }
    
    ZoomControls(zoom) {
            zoom = it.coerceIn(MinZoom, MaxZoom)
        }
    This is a bit confusing since being a Composable, I expect the lambda to be a
    content: @Composable () -> Unit
    instead of a callback.
    z
    a
    • 3
    • 10
  • a

    Archie

    08/30/2020, 3:25 PM
    How can I make
    TopAppBar
    consume
    Window Inset
    ? Doing:
    TopAppBar(
        modifier = Modifier.fillMaxWidth()
            .statusBarsPadding()
            .wrapContentHeight(),
    ...
    just result in something like this where the added padding is just white and not the TopAppbar Color.
    n
    a
    • 3
    • 8
  • d

    Davide Giuseppe Farella

    08/30/2020, 4:15 PM
    This is something that always made struggle also with XML design. I tried with something like
    Scaffold(topBar = ..., bottomBar = ..., ...) {
      when (currentScreen) {
        ...
      }
    }
    Problem is that some screen have fab, some have search bar in topBar, which has actions, etc. So I change that as
    val content @Composable () -> Unit = {
      when (currentScreen) {
        ...
      }
    }
    
    if (currentScreen.isHomeDestination) {
      Scaffold(...) { content() }
    else 
      content()
    and it was still looking nice on the UI prospective, but ugly on the code, because some screens will be wrapped in Scaffold, while some will be wrapped somewhere else ( 👆 ), So I created a custom Scaffold and moved into my screens
    @Composable
    fun SearchMovie(...) {
      HomeScaffold {
        ...
      }
    }
    But now it looks ugly on the UI, because I open my drawer, but when I select an item it replaces the whole screen, so my drawer disappear without the animation. What would be the best way to deal with that?
    e
    t
    • 3
    • 7
  • k

    Karthick

    08/30/2020, 5:25 PM
    Need a blog post about ambients...
    f
    • 2
    • 2
  • e

    Eric Martori

    08/30/2020, 8:34 PM
    Hello, I am following the CodeLabs and in the one about state (https://developer.android.com/codelabs/jetpack-compose-state#0) I have an issue with the
    onImeAction
    when used in the header: it doesn't work properly. It happens in what I have done and the "finished" versión given in the codeLab. Is this a known issue with the
    TextField
    composable or is there some problem with my setup? That TextField also won't let me delete the last character. This things only happen in the header so I don't know if this issues are with the
    TextField
    or something else about have this lab teaches about how to manage state
    m
    r
    s
    • 4
    • 9
  • s

    Sergey Y.

    08/30/2020, 10:10 PM
    Why I can't deploy preview to the device? Deploy button just disabled. On the Jetchat sample project the button works. What could be causing this? There are no errors or warnings.
    j
    s
    • 3
    • 11
  • d

    doubov

    08/30/2020, 10:48 PM
    Going through https://codelabs.developers.google.com/codelabs/jetpack-compose-state codelab, I noticed that the first letter cannot be erased. hello| hell| hel| he| h| |h GIF:
    r
    • 2
    • 3
  • k

    Kyant

    08/31/2020, 1:17 AM
    When the TextField is at the bottom of the screen, the TopAppBar and content will move up after the keyboard pops up. How to prevent them from moving? I want to make a TextField like Jetchat sample app's.
    a
    • 2
    • 3
  • i

    Icyrockton

    08/31/2020, 1:27 AM
    Is still release compose every two weeks?👀
    :yes: 3
    j
    • 2
    • 1
  • f

    fengdai

    08/31/2020, 3:02 AM
    How to understand the first term of
    @Stable
    ’s guarantees? > The result of equals will always return the same result for the same two instances.
    z
    a
    • 3
    • 19
  • p

    Pavel Ratushnyi

    08/31/2020, 6:48 AM
    Hi all I have an issue trying to add Compose to my project When building project i get this error:
    e: androidx.compose.compiler.plugins.kotlin.IncompatibleComposeRuntimeVersionException: You are using an outdated version of Compose Runtime that is not compatible with the version of the Compose Compiler plugin you have installed. The compose compiler plugin you are using (version 0.1.0-dev16) expects a minimum runtime version of 0.1.0-dev16.
    But i specify in build.gradle for 2 modules (feature module when i want to use compose and app module) latest version of compose:
    android {
    
        buildFeatures {
            compose true
        }
    
        composeOptions {
            kotlinCompilerVersion '1.4.0'
            kotlinCompilerExtensionVersion '1.0.0-alpha01'
        }
    
        kotlinOptions {
            jvmTarget = jvmTargetVer
            useIR = true
        }
    }
    I use gradle plugin version 4.2.0-alpha08:
    classpath 'com.android.tools.build:gradle:4.2.0-alpha08'
    and gradle version 6.6:
    distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-all.zip
    and kotlin version 1.4.0:
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0"
    Could anyone help me please? What i'm doing wrong?
    j
    z
    p
    • 4
    • 7
  • z

    Zan Skamljic

    08/31/2020, 8:43 AM
    I've recently gone though the full compose codelabs and I got a few questions that got me stuck in development: • How can I focus next TextField? Changing IME action wasn't enough, I'm not sure how to use the (experimental) focus API • Is there a way to use error property in TextField? Do I have to create one manually? I was using OutlinedTextField • Is there a list of all available components somewhere? Looking through sources of sample apps seems less than ideal when looking for something
    👍 5
    p
    j
    • 3
    • 6
  • t

    Tomáš Kuhn

    08/31/2020, 11:00 AM
    Hi, my compose preview stopped working with 1.0.0-alpha01 version. Has anyone else same experience? I’m using AndroidStudio 4.2. Canary7
    z
    d
    +2
    • 5
    • 7
  • n

    Niklas Schnettler

    08/31/2020, 2:10 PM
    Hey, I'm thinking about adding haptic feedback (vibration) to my app. In the old Viewsystem I would have used view.performHapticFeedback(). Is there a way to do something similar using compose without doing it manually (using the vibrate permission and the Vibrator Systemservice)?
    d
    m
    +2
    • 5
    • 5
  • m

    Marcin Środa

    08/31/2020, 2:13 PM
    Any idea how to disable text field? Looking for something better than stacked Box with onClick.
    j
    • 2
    • 4
  • d

    Davide Giuseppe Farella

    08/31/2020, 6:46 PM
    Is there a reason ( and a way around ) why
    TopAppBar
    and
    BottomAppBar
    , in dark theme, have a way lighter background of what I set? I’ve set
    Color(0xFF1c1c1c)
    but they’re so light, specially the Bottom one. I can see it very clearly compared to the status bar, which I’ve set as
    #1c1c1c
    j
    l
    +2
    • 5
    • 12
  • c

    Colton Idle

    08/31/2020, 9:14 PM
    Is it just me or does the compose pathway (https://developer.android.com/courses/pathways/compose) not actually save your progress properly. =(
    v
    • 2
    • 1
  • e

    Eric Martori

    08/31/2020, 9:18 PM
    I am trying to achieve something like the image attached with a Stack, where each element I add is placed at the bottom of the stack, with each element having a random color. The issue is that each time I add a new element the Composables lose the state even when I remember it using the id as a key. The final behaviour I want to achieve is much more complex than this and involves dragging elements, but it breaks for the same reason when trying to remember the position of the different draggable elements. I built a minimum example that reproduces this issue, is there a solution to this kind of scenarios?
    @Composable
    fun Body() {
        Stack(Modifier.fillMaxSize()) {
            var items by remember { mutableStateOf(listOf(0)) }
            items.reversed().forEach {
                Item(
                    it,
                    modifier = Modifier
                        .clickable(onClick = {
                            items += items.last() + 1
                        })
                        .gravity(Alignment.Center)
                        .matchParentSize()
                        .padding((100 - (it * 10)).dp)
                )
            }
        }
    }
    
    @Composable
    fun Item(num: Int, modifier: Modifier = Modifier) {
        val color = remember(num) { Color(Random.nextFloat(), Random.nextFloat(), Random.nextFloat()) }
        Box(modifier = modifier, backgroundColor = color, gravity = Alignment.Center) {
            Text(text = "$num", style = MaterialTheme.typography.h1)
        }
    }
    v
    a
    c
    • 4
    • 6
  • s

    Sivan

    09/01/2020, 7:01 AM
    I am trying to fire an intent to move to the next activity when I click on an ExtendedFloatingActionButton. To obtain the context, I tried
    ContextAmbient.current
    but android studio is unable to generate the error message. So I ended up using the context like this
    val context = ambientOf { ContextAmbient } as Context
    But when I fire the intent, the app crashes with the following error.
    E/AndroidRuntime: FATAL EXCEPTION: main
        Process: com.sivan.pinotes, PID: 25739
        java.lang.ClassCastException: androidx.compose.runtime.DynamicProvidableAmbient cannot be cast to android.content.Context
            at com.sivan.pinotes.MainActivityKt$extendedFAB$2$1.invoke(MainActivity.kt:65)
            at com.sivan.pinotes.MainActivityKt$extendedFAB$2$1.invoke(Unknown Source:0)
            at androidx.compose.foundation.ClickableKt$clickable$2$tap$1.invoke(Clickable.kt:79)
    If DynamicProvidableAmbient cannot be cast to a Context, are there any alternatives to this approach?
    m
    s
    • 3
    • 4
  • r

    Rodri Represa

    09/01/2020, 7:03 AM
    Hey guys!👋🏿. How do you do manage the navigation on compose? Also, do you use any dependency injection framework not to pass ViewModel as parameters on @Composable functions?
    z
    • 2
    • 1
  • d

    dimsuz

    09/01/2020, 12:11 PM
    I must miss something obvious, but why
    var inputState: TextFieldValue by mutableStateOf(TextFieldValue())
    fails with an error
    Type 'MutableState<TypeVariable(T)>' has no method 'getValue(Nothing?, KProperty<*>)' and thus it cannot serve as a delegate
    f
    d
    • 3
    • 13
  • a

    Archie

    09/01/2020, 1:15 PM
    Is there a way to monitor performance of Compose? I was curious which is has better performance between Nesting Columns and Rows and Using ConstraintLayout.
    m
    • 2
    • 5
  • e

    efemoney

    09/01/2020, 1:39 PM
    Hey everyone, is there a compose analog to nested scrolling apis in android?
    m
    • 2
    • 2
  • e

    efemoney

    09/01/2020, 1:43 PM
    As a follow up question, what is everyone using for scrolling tricks? Some things I am thinking about or will be interested in knowing the apis (or seeing some samples for) • collapsing toolbar • bottom sheet • hide and reveal fab or search bar on scroll • horizontal scrolling within vertical scrolling container etc (lazy web btw, I haven’t gone through the samples thoroughly yet)
    t
    • 2
    • 1
  • j

    JD

    09/01/2020, 1:45 PM
    Going through the codelab https://codelabs.developers.google.com/codelabs/jetpack-compose-layouts/#4 I noticed that the bottom navigation and drawer layout links are broken at the bottom of the page possibly they should be replaced with below: https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#bottomappbar Is this a good place for feedback or is there a separate area where this feedback should be provided.
    m
    • 2
    • 1
  • j

    jannis

    09/01/2020, 2:08 PM
    After adding compose I get the following Error:
    e: java.lang.NoSuchMethodError: 'void org.jetbrains.kotlin.cli.common.messages.MessageCollector$DefaultImpls.report$default(org.jetbrains.kotlin.cli.common.messages.MessageCollector, org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity, java.lang.String, org.jetbrains.kotlin.cli.common.messages.CompilerMessageLocation, int, java.lang.Object)'
    
    Execution failed for task ':app:kaptGenerateStubsDebugKotlin'.
    > Internal compiler error. See log for more details
    • 1
    • 5
Powered by Linen
Title
j

jannis

09/01/2020, 2:08 PM
After adding compose I get the following Error:
e: java.lang.NoSuchMethodError: 'void org.jetbrains.kotlin.cli.common.messages.MessageCollector$DefaultImpls.report$default(org.jetbrains.kotlin.cli.common.messages.MessageCollector, org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity, java.lang.String, org.jetbrains.kotlin.cli.common.messages.CompilerMessageLocation, int, java.lang.Object)'

Execution failed for task ':app:kaptGenerateStubsDebugKotlin'.
> Internal compiler error. See log for more details
Stacktrace:
e: java.lang.NoSuchMethodError: 'void org.jetbrains.kotlin.cli.common.messages.MessageCollector$DefaultImpls.report$default(org.jetbrains.kotlin.cli.common.messages.MessageCollector, org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity, java.lang.String, org.jetbrains.kotlin.cli.common.messages.CompilerMessageLocation, int, java.lang.Object)'
	at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension$saveIncrementalData$1.invoke(Kapt3Extension.kt:336)
	at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension$saveIncrementalData$1.invoke(Kapt3Extension.kt:116)
	at org.jetbrains.kotlin.cli.common.output.OutputUtilsKt.writeAll(outputUtils.kt:31)
	at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.saveIncrementalData(Kapt3Extension.kt:326)
	at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.generateKotlinSourceStubs(Kapt3Extension.kt:299)
	at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.analysisCompleted(Kapt3Extension.kt:167)
	at org.jetbrains.kotlin.kapt3.ClasspathBasedKapt3Extension.analysisCompleted(Kapt3Extension.kt:100)
	at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM$analyzeFilesWithJavaIntegration$2.invoke(TopDownAnalyzerFacadeForJVM.kt:108)
	at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:118)
	at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(TopDownAnalyzerFacadeForJVM.kt:93)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:526)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:90)
	at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:115)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.kt:517)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:185)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:164)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:51)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:86)
	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:346)
	at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:102)
	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally(IncrementalCompilerRunner.kt:240)
	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.access$compileIncrementally(IncrementalCompilerRunner.kt:39)
	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner$compile$2.invoke(IncrementalCompilerRunner.kt:81)
	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:93)
	at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:601)
	at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:93)
	at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1633)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	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(Native Method)
	at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
I’m using Room (2.2.5) and Dagger (2.28.3 +Hilt) with kapt
Anyone has an idea how to solve this?
I get this error when I add
buildFeatures {
    compose = true
}
View count: 3