android - 未解决的参考:bundleOf
问题描述
在更新了一些依赖项后(不确定是哪一个,但它包括navigation-ktx 和fragment-ktx),“bundleOf”消失了。被删除了吗?自动完成只建议我“persistableBundleOf()”,但这不是我需要的。PS我也有“实现'androidx.core:core-ktx:1.3.2'”。UPD:我的 build.gradle:
implementation 'androidx.fragment:fragment-ktx:1.3.1'
implementation 'androidx.preference:preference-ktx:1.1.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
def navigation_version = "2.3.4"
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"
解决方案
推荐阅读
- r - 忽略 R 中的缺失变量
- java - 如何在代理类上获取方法注释?
- c# - 异常代码 0xe0434352 崩溃 w3wp.exe | 点网运行
- mysql - 使用黑洞引擎的mysql主主复制
- docker - 如何使tomcat(url = ip:port)自动转到我的应用程序而不是根文件
- postgresql - 将字段上的值转换为新值以作为键加入 PostgreSQL
- c# - 为什么每次使用此身份验证过程都必须重新登录
- mysql - 如何根据 ID 从另一个表的单个字段中获取每一行的所有结果
- html - 如何修复'$'modal bootstrap未定义?
- c# - 如何使用 ADO.NET 将 API 中的 json 插入雪花数据库?