编译的时候报错:Static interface methods are only supported starting with Android N (–min-api 24): int androidx.constraintlayout.core.motion.utils.TypedValues$Attributes.getId(java.lang.String)
只需要在app下的build.gradle中的android 内部添加
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
即可