please remove the configuration of compileOptions in build.gradle of library。 Many project has not support Java17