title: Java configuration problem for flutter on mac m1
body: <p>I recently encountered a problem with flutter doctor showing me an error but I didn't have this problem before it says &quot;Unable to find bundled Java version&quot; and nothing of the changes I could make was useful .
  I install on the advice of some java on my machine but the error still appears.</p>
  <p>How to deal with this problem?</p>
  <p><a href="https://i.stack.imgur.com/e98g5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e98g5.png" alt="enter image description here" /></a></p>