I've installed the version 2018.1 of IntelliJ IDEA (COMMUNITY EDITION), which added support for Java 10.
When I tried to use new "var" to type local variable, the IDE highlights it with red colour and the lovely phrase: "Cannot resolve the type "var". Please see attachment varRed
I've read another post that happens exactly the same issue in which a member gave a possible solution https://stackoverflow.com/a/49719734/9478809
I've done that as well, I've created a live template for that type for Java statement but it still doesn't work.
Some of you got any suggestion for that? I will appreciate your help
Thanks in advance.
IntelliJ IDEA Configuration You can also download Java 16 directly from IntelliJ IDEA. To do so, go to Platform Settings and click on SDKs, then click the '+' sign at the top, choose Download JDK, then select the Vendor and version and the directory to download the JDK to.
To expand on nullpointer's comment, there are a few things you need to verify:
As a troubleshooting step, it's also helpful to compile on the command line with maven or gradle to make sure it is an IDE configuration issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With