First Flutter App error: cannot resolve symbol “Properties”

前端 未结 13 2368
南旧
南旧 2020-12-29 04:46

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

13条回答
  •  无人及你
    2020-12-29 05:03

    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'
        }
    }
    

提交回复
热议问题