Fixed
Status Update
Comments
vi...@google.com <vi...@google.com>
il...@google.com <il...@google.com> #2
This is a problem with the template. Kotlin code generated by the template should have always been using the lifecycle-ktx
extension format of liveData.map
, not using Transformations.map
syntax (which only Java code should be using).
This is particularly important when upgrading the Transformations
to Kotlin. This has nothing to do with what SDK you are compiling against or targeting.
Description
- AS Bumblebee
- AS Eel
Reproduce:
- create new Project, select Tabbed Actvity, select Java and Sdk 33.
Problem:
- Transformations Class not found or :
'map(androidx.lifecycle.LiveData<X>, kotlin.jvm.functions.Function1<X,Y>)' in 'androidx.lifecycle.Transformations' cannot be applied to '(androidx.lifecycle.LiveData<java.lang.Integer>, androidx.arch.core.util.Function<java.lang.Integer,java.lang.String>)'
Note:
Template works on older version (Bumblebee, sdk31)