I am facing Unable to find bundled java version on window 11, How to solve it ?
currently I used java 19.
Please help me.
I changed multiple java version and environment variables but issue still not resolve.
Also there’s no duplicate old version of android studio.
5
Answers
I had solve this problem by uninstalled Android Studio (version 2022.1) and download the version of 4.2 to installed, even if it’s not a better way to fix this. Maybe it can help you.
download the old version url:
https://developer.android.com/studio/archive
When you in Terminal run "flutter doctor -v" to see details, it will suggest you to reinstall or update Android Studio.
On windows however I fixed it another way:
I had to go to C:Program FilesAndroidAndroid Studio.
There is already jre folder in there, but it contained signle empty file.
Remove jre folder.
Create a copy of jbr folder.
Rename the copy to jre.
On Mac:
Go to finder and find Android studio:
right click and click show package contents
Create a new folder called jre
copy the contents of the jbr folder and paste them into jre folder
Copied from: https://github.com/flutter/flutter/issues/118502
This one worked for me …
I had this issue when I updated android studio from Dolphin to Electric Eel. I believe the patch process might have caused the java bundle in jre directory to be deleted. This is how I solved it.
I had a similar issue, I deleted the contents of the jre file and replaced them with the contents of the jbr file, and it worked