gpt4 book ai didi

kotlin - 找不到 Android registerForActivityResult

转载 作者:行者123 更新时间:2023-12-05 08:48:15 43 4
gpt4 key购买 nike

最近我根据这个更新了我对activity-ktx的依赖 https://developer.android.com/jetpack/androidx/releases/activity#1.2.0

但是,未找到 registerForActivityResult()。在此更新之前它正在运行。 androidx.activity:activity-ktx:1.2.0有什么变化吗?

enter image description here

最佳答案

我设法解决了我的问题。我想我会在这里发布我的答案,以防对其他人有帮助。

我的解决方案是更新此依赖项。

implementation 'androidx.appcompat:appcompat:1.3.0-beta01'

只有当我将版本更改为 1.3.0 时,我的 AS 才没有警告我更新。

PS:我指的是这个Cannot access 'androidx.activity.result.ActivityResultCaller'

关于kotlin - 找不到 Android registerForActivityResult,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66209464/

43 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com