I followed the steps in the Flutter document and tried to build my first Flutter app in Intellij IDEA. And when I try to run it,there was an error about my JAVA_HOME variabl
I've just had this issue and in my case was due to an invalid SDK configuration. I've solved by going to:
Project structure > Project Settings > Modules > Module SDK
and switching from
to Android api 29 platform
Android api 29 platform