Documentfile
查看文件文档。
最近更新时间 | 稳定版 | 候选版 | Beta 版 | Alpha 版 |
---|---|---|---|---|
2025 年 4 月 9 日 | 1.0.1 | - | 1.1.0-beta01 | - |
声明依赖项
如需添加 DocumentFile 的依赖项,您必须将 Google Maven 代码库添加到项目中。如需了解详情,请参阅 Google 的 Maven 代码库。
在应用或模块的 build.gradle
文件中添加所需工件的依赖项:
Groovy
dependencies { implementation "androidx.documentfile:documentfile:1.0.1" }
Kotlin
dependencies { implementation("androidx.documentfile:documentfile:1.0.1") }
反馈
您的反馈将帮助我们改进 Jetpack。如果您发现了新问题,或对此库有任何改进建议,请告诉我们。创建新问题前,请先查看此库中的现有问题。您可以点击星标按钮,为现有问题投票。
如需了解详情,请参阅问题跟踪器文档。
版本 1.1.0
版本 1.1.0-beta01
2025 年 4 月 9 日
发布了 androidx.documentfile:documentfile:1.1.0-beta01
。版本 1.1.0-beta01 包含这些提交内容。
bug 修复
- 此库现在使用 JSpecify nullness annotations,即类型使用。Kotlin 开发者应使用以下编译器参数来强制执行正确的用法:
-Xjspecify-annotations=strict
、-Xtype-enhancement-improvements-strict-mode
。b/326456246 - 修复了 documentfile 中的文档问题 b/337250687
版本 1.1.0-alpha01
2021 年 8 月 18 日
发布了 androidx.documentfile:documentfile:1.1.0-alpha01
。版本 1.1.0-alpha01 中包含这些提交内容。
bug 修复
- 修复了针对
DocumentFile
的 ClassVerificationFailure。(b/188452767)
版本 1.0.1
版本 1.0.1
2019 年 2 月 25 日
发布了 androidx.documentfile:documentfile 1.0.1
。
问题修复
- 修复了深度树 URI 被
Document.fromUri
截断的错误 (b/37081745)