> Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'
这看起来很奇怪,因为我确实有 java 11:
$ java --version
openjdk 11.0.8 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing)
我错过了什么?