使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Jetifier
一款独立工具,可将某个库中对已废弃支持库的依赖项迁移到等效的 AndroidX 依赖项。
最近更新时间 |
稳定版 |
候选版 |
Beta 版 |
Alpha 版 |
2020 年 9 月 2 日 |
- |
- |
1.0.0-beta10 |
- |
反馈
您的反馈将帮助我们改进 Jetpack。如果您发现了新问题,或对此库有任何改进建议,请告诉我们。创建新问题前,请先查看此库中的现有问题。您可以点击星标按钮,为现有问题投票。
创建新问题
如需了解详情,请参阅问题跟踪器文档。
版本 1.0.0
版本 1.0.0-beta10
2020 年 9 月 2 日
发布了 androidx.jetifier:jetifier-core:1.0.0-beta10
和 androidx.jetifier:jetifier-processor:1.0.0-beta10
。版本 1.0.0-beta10 中包含这些提交内容。
新功能
- 引入了时间戳政策(适用于确定性版本)
- Jetifier 独立工具中新增了参数“--timestampsPolicy”以供使用。
- 将 Jetifier 升级到了 asm 8
bug 修复
版本 1.0.0-beta09
2020 年 2 月 19 日
发布了 androidx.jetifier:jetifier-core:1.0.0-beta09
和 androidx.jetifier:jetifier-processor:1.0.0-beta09
。版本 1.0.0-beta09 中包含这些提交内容。
新功能
- 添加了对在 XML 中处理
@link
参考的支持
bug 修复
- 重写编写了包含 Androidx 和 android.support 参考文档组合的库,因为之前这些参考文档会被跳过。(b/148462462)
版本 1.0.0-beta08
2019 年 11 月 20 日
发布了 androidx.jetifier:jetifier-core:1.0.0-beta08
和 androidx.jetifier:jetifier-processor:1.0.0-beta08
。版本 1.0.0-beta08 中包含这些提交内容。
bug 修复
版本 1.0.0-beta07
2019 年 9 月 18 日
发布了 com.android.tools.build.jetifier:jetifier-core:1.0.0-beta07
和 com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta07
。版本 1.0.0-beta07 中包含这些提交内容。
bug 修复
- 修复了
androidx.navigation
库的映射
版本 1.0.0-beta06
2019 年 8 月 15 日
发布了 androidx.jetifier:jetifier-core:1.0.0-beta06
和 androidx.jetifier:jetifier-processor:1.0.0-beta06
。点击此处可查看此版本中包含的提交内容。
bug 修复
版本 1.0.0-beta05
2019 年 6 月 18 日
发布了 com.android.tools.build.jetifier:jetifier-core:1.0.0-beta05
和 com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta05
。点击此处可查看此版本中包含的提交内容。
新功能
- 针对 Navigation 和 WorkManager 添加了映射。
- Jetifier 现在可以跳过包含 AndroidX 引用的库 (b/119135578)
bug 修复
版本 1.0.0-beta04
2019 年 2 月 25 日
发布了 com.android.tools.build.jetifier 1.0.0-beta04
。
bug 修复
- 将
ConstraintLayout
版本更新为 1.1.3
- 修复了
android.support.v4.os.ResultReceiver
的映射 (b/123651524)
版本 1.0.0-beta03
2019 年 2 月 7 日
发布了 com.android.tools.build.jetifier 1.0.0-beta03
。
新功能
- 现在,如果 Jetifier 在经过其处理的 JAR 内部发现签名,则会抛出异常。可以使用
-stripSignatures
停用这一功能,不过这样做会移除所有签名文件。这不适用于对旧支持库不存在任何依赖项的库,因为 Jetifier 会跳过这些库 (aosp/894356)
bug 修复
- 修复了 Jetifier 处理 android.support.customtabs 的过程,因此 Jetifier 不再迁移常量 (aosp/875343)
- 修复了 Jetifier 始终在未修改的归档包含 POM 文件时将其标记为已修改的问题 (aosp/876353)
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Jetifier\n========\n\nA standalone tool that migrates a library's dependencies on the deprecated support library to equivalent AndroidX dependencies. \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|-------------------|----------------|-------------------|------------------------------------------------------------------|---------------|\n| September 2, 2020 | - | - | [1.0.0-beta10](/jetpack/androidx/releases/jetifier#1.0.0-beta10) | - |\n\nFeedback\n--------\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:460323%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=460323&template=1287245)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nVersion 1.0.0\n-------------\n\n### Version 1.0.0-beta10\n\nSeptember 2, 2020\n\n`androidx.jetifier:jetifier-core:1.0.0-beta10` and `androidx.jetifier:jetifier-processor:1.0.0-beta10` are released. [Version 1.0.0-beta10 contains these commits](https://android.googlesource.com/platform/frameworks/support/+log/6f7b9ed69dc63e3c2c2b02ee1155b6009a9d5f82..31022a2dda22705843be1199c786552a6f9f875d/jetifier/jetifier).\n\n**New features**\n\n- Introduced timestamp policy (for deterministic builds)\n - new parameter \"--timestampsPolicy\" in jetifier standalone to use it.\n- Upgraded jetifier to asm 8\n\n**Bug Fixes**\n\n- Fixed input method string mappings\n\n### Version 1.0.0-beta09\n\nFebruary 19, 2020\n\n`androidx.jetifier:jetifier-core:1.0.0-beta09` and `androidx.jetifier:jetifier-processor:1.0.0-beta09` are released. [Version 1.0.0-beta09 contains these commits](https://android.googlesource.com/platform/frameworks/support/+log/b062e6d3d53790823deac02cc553aa21461a4079..6f7b9ed69dc63e3c2c2b02ee1155b6009a9d5f82/jetifier).\n\n**New features**\n\n- Added support for processing `@link` references in XML\n\n**Bug Fixes**\n\n- Rewrite libraries that contain a mix of androidx and android.support references as these were skipped before. ([b/148462462](https://issuetracker.google.com/issues/148462462))\n\n### Version 1.0.0-beta08\n\nNovember 20, 2019\n\n`androidx.jetifier:jetifier-core:1.0.0-beta08` and `androidx.jetifier:jetifier-processor:1.0.0-beta08` are released. [Version 1.0.0-beta08 contains these commits](https://android.googlesource.com/platform/frameworks/support/+log/d9761c71f9eacfa0abb8f0bc3e2305c8b229d75a..b062e6d3d53790823deac02cc553aa21461a4079/jetifier/jetifier).\n\n**Bug fixes**\n\n- Fixed a ProGuard parsing error ([b/134100420](http://issuetracker.google.com/134100420))\n- Fixed a signature error that occurred on unmodified archives ([b/142580430](http://issuetracker.google.com/142580430))\n- Removed an unnecessary warning that displayed when modifying single files ([b/143609228](http://issuetracker.google.com/143609228))\n\n### Version 1.0.0-beta07\n\nSeptember 18, 2019\n\n`com.android.tools.build.jetifier:jetifier-core:1.0.0-beta07` and `com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta07` are released. [Version 1.0.0-beta07 contains these commits](https://android.googlesource.com/platform/frameworks/support/+log/af05c08e2a2f721b3f7411affca883f6a3336513..d9761c71f9eacfa0abb8f0bc3e2305c8b229d75a/jetifier).\n\n**Bug fixes**\n\n- Fixed the mappings of the `androidx.navigation` library\n\n### Version 1.0.0-beta06\n\nAugust 15, 2019\n\n`androidx.jetifier:jetifier-core:1.0.0-beta06` and `androidx.jetifier:jetifier-processor:1.0.0-beta06` are released. The commits included in this version can be found [here](https://android.googlesource.com/platform/frameworks/support/+log/c7ff6518ef8c45a3ce775f9a3dde4fbc77854e7a..af05c08e2a2f721b3f7411affca883f6a3336513/jetifier).\n\n**Bug fixes**\n\n- Fixed a thread safety issue with `Class.getResourceAsStream()`. ([b/137929327](https://issuetracker.google.com/issues/137929327), [b/120277395](https://issuetracker.google.com/issues/120277395))\n\n- Fixed `NullPointerException` when processing files locally with Jetifier standalone ([b/136576786](https://issuetracker.google.com/issues/136576786))\n\n### Version 1.0.0-beta05\n\nJune 18, 2019\n\n`com.android.tools.build.jetifier:jetifier-core:1.0.0-beta05` and `com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta05` is released. The commits included in this version can be found [here](https://android.googlesource.com/platform/frameworks/support/+log/0010058fd49253b84e622b2a74ec348e23f5af7f..c7ff6518ef8c45a3ce775f9a3dde4fbc77854e7a/jetifier).\n\n**New features**\n\n- Adds mappings for Navigation and WorkManager.\n- Jetifier can now skip libraries containing AndroidX references ([b/119135578](https://issuetracker.google.com/119135578))\n\n**Bug fixes**\n\n- Close stream when loading config in jetifier ([b/120277395](https://issuetracker.google.com/120277395)\n- Fix for incorrectly migrated Bundle key strings\n\n### Version 1.0.0-beta04\n\nFebruary 25, 2019\n\n`com.android.tools.build.jetifier 1.0.0-beta04` is released.\n\n**Bug fixes**\n\n- Updated version of `ConstraintLayout` to `1.1.3`\n- Fixed mapping of `android.support.v4.os.ResultReceiver` ([b/123651524](https://issuetracker.google.com/123651524))\n\n### Version 1.0.0-beta03\n\nFebruary 7, 2019\n\n`com.android.tools.build.jetifier 1.0.0-beta03` is released.\n\n**New features**\n\n- Jetifier now throws an exception if it finds a signature inside a jetified JAR. This can be disabled by using `-stripSignatures` which will remove all signature files. This does not apply to libraries that do not have any dependencies on old support library as jetifier skips these ([aosp/894356](https://android-review.googlesource.com/894356/))\n\n**Bug fixes**\n\n- Fixed jetification of android.support.customtabs so jetifier no longer migrates the constants ([aosp/875343](https://android-review.googlesource.com/875343/))\n- Fixed that jetifier always marked non-modified archives as modified if they contained a POM file ([aosp/876353](https://android-review.googlesource.com/876353/))"]]