Android Studio Preview 软件如果遇到Unable to find bundled Java version问题
就把/Applications/Android Studio Preview.app/Contents/jre/Contents 文件 复制到
/Applications/Android Studio Preview.app/Contents/jre/jdk/Contents
jdk文件夹没有就新建
flutter/packages/flutter_tools/lib/src/android/android_studio.dart
join(directory, 'jre', 'Contents', 'Home')
instead of
join(directory, 'jre', 'jdk', 'Contents', 'Home')
for newest android studio previews (at least on macos).
Workaround for such people: copy folder
/Applications/Android Studio Preview.app/Contents/jre/Contents
to
/Applications/Android Studio Preview.app/Contents/jre/jdk/Contents