未解决对Transformations的引用

huangapple go评论56阅读模式
英文:

Unresolved reference to Transformations

问题

我在执行以下升级时遇到此错误:

  • androidx.fragment:fragment-ktx:1.6.0-alpha04 -> alpha05
  • androidx.appcompat:appcompat:1.7.0-alpha01 -> alpha02
  • androidx.navigation:navigation-...- ktx:2.6.0-alpha04 -> alpha05

供参考,我有以下依赖项:

implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"

其中 lifecycle_version 为 2.5.1

英文:

I get this error if I do any of the following upgrades:

  • androidx.fragment:fragment-ktx:1.6.0-alpha04 -> alpha05
  • androidx.appcompat:appcompat:1.7.0-alpha01 -> alpha02
  • androidx.navigation:navigation-...- ktx:2.6.0-alpha04 -> alpha05

For reference I have these dependencies:

implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"

where lifecycle_version is 2.5.1

答案1

得分: 2

使用 myData.map {}myData.switchMap

查看 这里

英文:

Use myData.map {}or myData.switchMap

Have a look at this

huangapple
  • 本文由 发表于 2023年2月14日 22:33:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/75449324.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定