[Flutter] Task 'assembleDebug' not found in root project 'android' Error

2022. 11. 13. 20:10Flutter

 

1. JAVA_HOME 에서 JAVA Version 11로 업데이트\

2. setting.json 해당 문구 추가

"java.jdt.ls.java.home": "C:\\Program Files\\Java\\jdk-11.0.16.1"
{
    "[dart]": {
        "editor.formatOnSave": true,
        "editor.formatOnType": true,
        "editor.rulers": [
            80
        ],
        "editor.selectionHighlight": false,
        "editor.suggest.snippetsPreventQuickSuggestions": false,
        "editor.suggestSelection": "first",
        "editor.tabCompletion": "onlySnippets",
        "editor.wordBasedSuggestions": false 
    } ,
        "java.jdt.ls.java.home": "C:\\Program Files\\Java\\jdk-11.0.16.1"
}

3. gradle.properties 해당 문구 추가

org.gradle.java.home=C:/Program Files/Java/jdk-11.0.16.1
 

참고 문헌

https://stackoverflow.com/questions/72830410/java-error-in-flutter-visual-studio-code