First Flutter App error: cannot resolve symbol “Properties”

前端 未结 13 2273
南旧
南旧 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:16

    I tried all other suggestions, and they did not help. Then I have removed "new" in front of GradleException, and it solved the problem:

    throw GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
    

    It worked perfectly fine with the "new" word for a long time. I don't know what have caused this change.

提交回复
热议问题