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
Need to include google maven repository to your project level build.gradle file.
buildscript { repositories { google() jcenter() maven { //add this section url "https://maven.google.com" } } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' } }