参考这篇,https://www.cwiki.us/display/JAVAZH/questions/57934274/answers/57934279?spm=a2c6h.12873639.0.0.6814661fftJck3
果然把jdk降到1.8就可以正常编译了