1、
2、

然后报错了:
The gradle plugin version in your project build.gradle file needs to be set to at least com.android.tools.build:gradle:3.2.0 in order to migrate to AndroidX.
修改gradle版本



31报错了就用30.0.0了
3、


提示备份、然后执行do refactor
4、

5、运行之后报错

implementation 'com.jakewharton:butterknife:10.0.0' annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'

升级到1.0以上
6、然后各种包报错

然后各种导包各种全局替换

项目和模块都改到28

















