title: Flutter - Unable to find bundled Java version
body: <p>I have a problem to run flutter app from VS Code,</p>
  <pre><code>FAILURE: Build failed with an exception.
  
  What went wrong:
  Execution failed for task ':app:compileDebugJavaWithJavac'.
  java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module @0x3d67da21) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0x3d67da21
  
  Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  Get more help at https://help.gradle.org
  
  BUILD FAILED in 3s
  Exception: Gradle task assembleDebug failed with exit code 1
  </code></pre>
  <p>What <code>flutter doctor</code> said :</p>
  <pre><code>[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-arm, locale
      en-RS)
  [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
  [✓] Xcode - develop for iOS and macOS
  [✓] Chrome - develop for the web
  [!] Android Studio
      ✗ **Unable to find bundled Java version.**
  [✓] Connected device (2 available)
  </code></pre>