Sunday, August 8, 2021

Flutter: Unable to find bundled Java version

Let's say you try to run your flutter app in a simulator and failed.
When you run "flutter doctor", you get this message: "Unable to find bundled Java version".
What you need to do is to duplicate the Contents directory into a directory called jdk [1].
$ cd /Applications/Android\ Studio.app/Contents/jre
$ mkdir jdk
$ cp -R Contents ./jdk/Contents
[1] https://github.com/flutter/flutter/issues/76215#issuecomment-864407892

No comments :

Post a Comment