AndroidX,migrate,jetifier

一次读完如下的文章,可以明白AndroidX的由来,如何迁移,以及迁移中关于对第三库依赖的解决方法.

0.support-library

1.AndroidX Overview

2.Hello World, AndroidX

3.hello-world-androidx

4.Migrating to AndroidX

5.android-jetifier-binary-migration-tool

一篇很好的文章.讲解Jetifier的,是泰语,可以用chrome网页自带的翻译,翻译成汉语.

6.what-is-jetifier

7.what-is-androidx

8.Jetpack series: 1 — androidx.*, a headache for a better package structure

9.gradle-plugin-release

10.jetifier插件源码

11.frameworks/support/+/android-9.0.0_r10

12.jetifier插件源码aosp

13./android-jetpack-android-x

14.androidx-a-headache-for-a-better-package-structure

15.whats-new-in-android-support-library

1
2
3
4
5
6
7
8
9
https://android-developers.googleblog.com/2018/05/hello-world-androidx.html

Source refactoring updates your Java code, XML resources, and Gradle configuration to reference the refactored classes and Maven artifacts. This feature is available in Android Studio Canary 14 for applications targeting Android P.

If you depend on a library that references the older Support Library, Android Studio will update that library to reference androidx instead via dependency translation. Dependency translation is automatically applied by the Android Gradle Plugin 3.2.0-alpha14, which rewrites bytecode and resources of JAR and AAR dependencies (and transitive dependencies) to reference the new androidx-packaged classes and artifacts. We will also provide a standalone translation tool as a JAR.

源重构更新您的Java代码,XML资源和Gradle配置,以引用重构类和Maven工件。 此功能在Android Studio Canary 14中适用于针对Android P的应用程序。

如果您依赖于引用旧支持库的库,Android Studio将通过依赖项转换更新该库以引用androidx。 依赖转换由Android Gradle Plugin 3.2.0-alpha14自动应用,它重写JAR和AAR依赖项(和传递依赖项)的字节码和资源,以引用新的androidx打包的类和工件。 我们还将提供独立的翻译工具作为JAR。

jetifier插件是从android gradle plugin 3.2.0-alpha11开始引入的.

jetifier-core-0.0.1.jar

jetifier-core-0.0.1.pom

jetifier-processor-0.0.1.jar

jetifier-processor-0.0.1.pom