1、错误:The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.
方案:将butterkinfe的引用改为10.0.0
2、错误:Error: Static interface methods are only supported starting with Android N (--min-api 24)
方案:添加
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}