https://kotlinlang.org logo
#compose
Title
# compose
h

Henning B

09/15/2020, 4:16 PM
I am having a problem in the "Layouts in Jetpack Compose" Codelab. Chapter 6 "Create your custom layout". You are supposed to map a List of Measurables to a list of Placeables. The
map
operator doesn't work for me though. I am getting the error:
Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: ...
.fastMap
works though. Why is this happening? Should I report this? Link to codelab: https://developer.android.com/codelabs/jetpack-compose-layouts#5
I think my sample project is misconfigured. Missing many collection functions. The next chapter uses .maxOrNull and .sumBy on IntArrays but they are also not available
Fixed the problem by upping the kotlin and compose kotlinCompilerVersion version from 1.4.0 to 1.4.10
7 Views