• z

    zoha131

    1 year ago
    Fatal Exception: java.lang.IllegalArgumentException: Required value was null.
           at androidx.compose.ui.node.LayoutNode.getInnerLayerWrapper$ui_release(LayoutNode.kt:639)
           at androidx.compose.ui.node.LayoutNode.shouldInvalidateParentLayer(LayoutNode.kt:1298)
           at androidx.compose.ui.node.LayoutNode.setModifier(LayoutNode.kt:670)
           at androidx.compose.ui.node.LayoutEmitHelper$setModifier$1.invoke(LayoutNode.kt:1382)
           at androidx.compose.ui.node.LayoutEmitHelper$setModifier$1.invoke(:6)
           at androidx.compose.ui.layout.LayoutKt$materializerOf$1.invoke(Layout.kt:614)
           at androidx.compose.ui.layout.LayoutKt$materializerOf$1.invoke(:13)
           at androidx.compose.runtime.internal.ComposableLambda.invoke(ComposableLambda.kt:155)
           at androidx.compose.runtime.internal.ComposableLambda.invoke(:10)
           at androidx.compose.material.BottomNavigationKt$BottomNavigationItemBaselineLayout$1.invoke(BottomNavigation.kt:456)
           at androidx.compose.material.BottomNavigationKt$BottomNavigationItemBaselineLayout$1.invoke(:10)
           at androidx.compose.runtime.internal.ComposableLambda.invoke(ComposableLambda.kt:146)
           at androidx.compose.runtime.internal.ComposableLambda.invoke(:10)
           at androidx.compose.ui.layout.LayoutKt.Layout(Layout.kt:682)
           at androidx.compose.material.BottomNavigationKt.BottomNavigationItemBaselineLayout(BottomNavigation.kt:238)
           at androidx.compose.material.BottomNavigationKt.access$BottomNavigationItemBaselineLayout()
           at androidx.compose.material.BottomNavigationKt$BottomNavigationItem$3$1.invoke(BottomNavigation.kt:179)
           at androidx.compose.material.BottomNavigationKt$BottomNavigationItem$3$1.invoke(:17)
           at androidx.compose.runtime.internal.ComposableLambda.invoke(ComposableLambda.kt:155)
           at androidx.compose.runtime.internal.ComposableLambda.invoke(:10)
           at androidx.compose.material.BottomNavigationKt$BottomNavigationTransition$1.invoke(BottomNavigation.kt:218)
           at androidx.compose.material.BottomNavigationKt$BottomNavigationTransition$1.invoke(:10)
           at androidx.compose.runtime.internal.ComposableLambda.invoke(ComposableLambda.kt:146)
           at androidx.compose.runtime.internal.ComposableLambda.invoke(:10)
           at androidx.compose.runtime.AmbientKt.Providers(Ambient.kt:187)
           at androidx.compose.material.BottomNavigationKt.BottomNavigationTransition-P1FLhu4(BottomNavigation.kt:214)
           at androidx.compose.material.BottomNavigationKt.access$BottomNavigationTransition-P1FLhu4()
           at androidx.compose.material.BottomNavigationKt$BottomNavigationTransition$2.invoke(:13)
           at androidx.compose.material.BottomNavigationKt$BottomNavigationTransition$2.invoke(:10)
           at androidx.compose.runtime.RecomposeScope.compose(Composer.kt:286)
           at androidx.compose.runtime.Composer.recomposeToGroupEnd(Composer.kt:1696)
           at androidx.compose.runtime.Composer.skipToGroupEnd(Composer.kt:1975)
           at androidx.compose.material.ScaffoldKt$ScaffoldLayout$1$1$1$bottomBarPlaceables$1.invoke(Scaffold.kt:281)
           at androidx.compose.material.ScaffoldKt$ScaffoldLayout$1$1$1$bottomBarPlaceables$1.invoke(:10)
           at androidx.compose.runtime.internal.ComposableLambda.invoke(ComposableLambda.kt:146)
           at androidx.compose.runtime.internal.ComposableLambda.invoke(:10)
           at androidx.compose.ui.layout.SubcomposeLayoutState$subcompose$2$1.invoke(SubcomposeLayout.kt:181)
           at androidx.compose.ui.layout.SubcomposeLayoutState$subcompose$2$1.invoke(:10)
           at androidx.compose.runtime.internal.ComposableLambda.invoke(ComposableLambda.kt:146)
           at androidx.compose.runtime.internal.ComposableLambda.invoke(:10)
           at androidx.compose.runtime.ComposerKt.invokeComposable(Composer.kt:2887)
           at androidx.compose.runtime.Composer.composeInitial(Composer.kt:2057)
           at androidx.compose.runtime.Recomposer.composeInitial$runtime_release(Recomposer.kt:353)
           at androidx.compose.runtime.Composer$CompositionReferenceImpl.composeInitial$runtime_release(Composer.kt:2500)
           at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:110)
           at androidx.compose.ui.platform.WrapperKt.actualSubcomposeInto(Wrapper.kt:124)
           at androidx.compose.ui.platform.SubcompositionKt.subcomposeInto(Subcomposition.kt:39)
           at androidx.compose.ui.layout.SubcomposeLayoutState$subcompose$2.invoke(SubcomposeLayout.kt:175)
           at androidx.compose.ui.layout.SubcomposeLayoutState$subcompose$2.invoke()
           at androidx.compose.runtime.snapshots.SnapshotStateObserver.pauseObservingReads(SnapshotStateObserver.kt:147)
           at androidx.compose.ui.node.OwnerSnapshotObserver.pauseSnapshotReadObservation$ui_release(OwnerSnapshotObserver.kt:52)
           at androidx.compose.ui.node.LayoutNode.ignoreModelReads(LayoutNode.kt:1156)
           at androidx.compose.ui.layout.SubcomposeLayoutState.subcompose(SubcomposeLayout.kt:173)
           at androidx.compose.ui.layout.SubcomposeLayoutState.subcomposeIfRemeasureNotScheduled(SubcomposeLayout.kt:167)
           at androidx.compose.ui.layout.SubcomposeLayoutKt.SubcomposeLayout(SubcomposeLayout.kt:83)
           at androidx.compose.ui.layout.SubcomposeLayoutKt$SubcomposeLayout$2.invoke(:10)
           at androidx.compose.ui.layout.SubcomposeLayoutKt$SubcomposeLayout$2.invoke(:10)
           at androidx.compose.runtime.RecomposeScope.compose(Composer.kt:286)
           at androidx.compose.runtime.Composer.recomposeToGroupEnd(Composer.kt:1696)
           at androidx.compose.runtime.Composer.skipCurrentGroup(Composer.kt:1953)
           at androidx.compose.runtime.Composer.recompose(Composer.kt:2083)
           at androidx.compose.runtime.Recomposer.performRecompose(Recomposer.kt:375)
           at androidx.compose.runtime.Recomposer.access$performRecompose()
           at androidx.compose.runtime.Recomposer$recomposeAndApplyChanges$2$4.invoke(Recomposer.kt:310)
           at androidx.compose.runtime.Recomposer$recomposeAndApplyChanges$2$4.invoke(:7)
           at androidx.compose.runtime.dispatch.AndroidUiFrameClock$withFrameNanos$2$callback$1.doFrame(AndroidUiFrameClock.kt:34)
           at androidx.compose.runtime.dispatch.AndroidUiDispatcher.performFrameDispatch(AndroidUiDispatcher.kt:111)
           at androidx.compose.runtime.dispatch.AndroidUiDispatcher.access$performFrameDispatch()
           at androidx.compose.runtime.dispatch.AndroidUiDispatcher$dispatchCallback$1.doFrame(AndroidUiDispatcher.kt:71)
           at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1007)
           at android.view.Choreographer.doCallbacks(Choreographer.java:821)
           at android.view.Choreographer.doFrame(Choreographer.java:753)
           at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:995)
           at android.os.Handler.handleCallback(Handler.java:873)
           at android.os.Handler.dispatchMessage(Handler.java:99)
           at android.os.Looper.loop(Looper.java:201)
           at android.app.ActivityThread.main(ActivityThread.java:6826)
           at java.lang.reflect.Method.invoke(Method.java)
           at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
    z
    Andrey Kulikov
    +1
    6 replies
    Copy to Clipboard
  • z

    zoha131

    1 year ago
    I am getting this fatal issue for
    BottomNavigation
    . not sure if I am doing something wrong or there is an issue with
    BottomNavigation
    z
    c
    +1
    3 replies
    Copy to Clipboard
  • lilypuchi

    lilypuchi

    1 year ago
    My understanding of recomposition might be really poor, but I’m unable to understand why the value of
    bounce
    isn’t changing when I trigger
    bounce.animateTo(..)
    in
    onClick
    Would really appreciate some help here 🙇
    @Composable
    fun Bouncy(modifier: Modifier = Modifier) {
        val bounce = animatedFloat(initVal = 0f)
    
        Box(modifier = modifier
                .size(width = 150.dp, height = 50.dp)
                .clip(shape = GenericShape {
                    val height = it.height * bounce.value
                    relativeMoveTo(0f, 0f)
                    relativeLineTo(it.width / 2, height)
                    relativeLineTo(it.width / 2, -height)
                })
                .background(color = Color.Red)
                .clickable(onClick = {
                    bounce.animateTo(
                            targetValue = 1f,
                            anim = spring(
                                    dampingRatio = Spring.DampingRatioMediumBouncy,
                                    stiffness = Spring.StiffnessLow
                            ),
                    )
                })
        )
    }
    lilypuchi
    Jeisson Sáchica
    +1
    4 replies
    Copy to Clipboard
  • z

    zsperske

    1 year ago
    Has anyone been able to disable a text field but still make it clickable? I want to show a date/time picker when the text field is tapped
    z
    z
    2 replies
    Copy to Clipboard
  • d

    Daniele B

    1 year ago
    I get this error:
    2020-12-08 15:59:51.291 2602-10311/? D/PowerUI: can't show warning due to - plugged: true status unknown: false
      java.lang.NoSuchFieldError: No field Companion of type Landroidx/compose/runtime/SlotTable$Companion; in class Landroidx/compose/runtime/SlotTable; or its superclasses
        at androidx.navigation.compose.NavHostKt.NavHost(NavHost.kt:163)
    Android Studio: Arctic Fox 2020.3.1 Canary 2 Kotlin: 1.4.21 Compose: 1.0.0-alpha08 Navigation: 1.0.0-alpha03 any idea?
    d
    aiidziis
    +2
    5 replies
    Copy to Clipboard
  • Spikey Sanju

    Spikey Sanju

    1 year ago
    I'm facing following issue for Image component after updating to alpha 08. Why is that happening?
    None of the following functions can be called with the arguments supplied.
    Image(ImageAsset, Modifier = ..., Alignment = ..., ContentScale = ..., Float = ..., ColorFilter? = ...) defined in androidx.compose.foundation
    Image(Painter, Modifier = ..., Alignment = ..., ContentScale = ..., Float = ..., ColorFilter? = ...) defined in androidx.compose.foundation
    Image(VectorAsset, Modifier = ..., Alignment = ..., ContentScale = ..., Float = ..., ColorFilter? = ...) defined in androidx.compose.foundation
    Spikey Sanju
    aiidziis
    2 replies
    Copy to Clipboard
  • Bryan Herbst

    Bryan Herbst

    1 year ago
    Has anyone else had issues with Gradle hanging after updating to AGP 7.0.0 and Compose alpha08?
    Bryan Herbst
    Joe Jensen
    5 replies
    Copy to Clipboard
  • k

    Kshitij Patil

    1 year ago
    Has anyone made compose implementation of
    AutoCompleteTextView
    ? I know I can just use the existing one but having it implemented in Compose would make it more flexible I feel.
    k
    Dominaezzz
    3 replies
    Copy to Clipboard
  • s

    Sam

    1 year ago
    what’s the best way to set a fixed
    dp
    spacing between each item in a
    LazyColumnFor
    ? There seems to be
    contentPadding
    as a param but no obvious
    itemSpacing
    s
    Halil Ozercan
    +1
    4 replies
    Copy to Clipboard
  • Martin Nowosad

    Martin Nowosad

    1 year ago
    is there currently a way to render/draw your own ui elements / composables (analog to creating a custom view on android and writing your own logic within
    onDraw
    )?
    Martin Nowosad
    a
    +1
    10 replies
    Copy to Clipboard