skip to Main Content

I was doing some basic stuff with Flutter when I received the Android Studio update Arctic Fox. I just updated. When I ran my app (which was fine before the upgrade) just after the update this error appeared.
enter image description here

flutter doctor output is here.

enter image description here

java version is

enter image description here

In the Project Structure in Android Studio I cannot set Java SDK as seen below.

enter image description here

I found this question and so many others on the Internet while trying to fix the issue, I could not find the solution yet. Can someone help me to fix this please.

2

Answers


  1. This is fixed in the master branch of flutter. For now you can switch to master branch and later moved to stable when the code is merged to stable.

    flutter channel master # This will switch to master branch.
    flutter upgrade # This will upgrade flutter.
    

    Due to the JDK folder change in new Arctic Fox, flutter needed this update. After running, you can try flutter doctor it should say No issues found!.

    Login or Signup to reply.
  2. The answer given by @kushverma definitely is helpful but since the master version changes from day to day, it is not stable enough to work on. this issue is also fixed in the "beta" channel which is more stable and is prone to fewer issues. Hope this is helpful to anyone who is having this issue.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search