Recreate JDK from table when importing settings

When updating Android Studio from one version to another, we also update
the embedded JDK. This means that if we import the setting from an older
version, the information on the JDK table for the embedded JDK becomes
stale. This was not an issue on previous version since we have been
providing a version of Java 8, but starting with Android Studio 4.2, we
now provide Java 11, which has different classPath entries on the JDK
table, causing unresolved symbols and other problems.

This change updates all the JDKs in the JDK table after importing
settings so the information in it is correct.

Bug: 185562147
Test: Manually checked (will generate a manual test).
Change-Id: I14860ac898983300191285f9f86a3e1fbe9a7f83
(cherry picked from commit c91f5bc6cd808bfacb5973d2d67e6b4c5973bd18)
1 file changed
tree: 10f191f9df144601d7576227d99b71e4584c3d84
  1. .idea/
  2. adt-testutils/
  3. adt-ui/
  4. adt-ui-model/
  5. analytics/
  6. android/
  7. android-adb/
  8. android-common/
  9. android-debuggers/
  10. android-kotlin/
  11. android-lang/
  12. android-lang-databinding/
  13. android-layout-inspector/
  14. android-npw/
  15. android-plugin/
  16. android-templates/
  17. android-test-framework/
  18. android-test-retention/
  19. android-transport/
  20. android-uitests/
  21. androidx-integration-tests/
  22. apkanalyzer/
  23. app-inspection/
  24. artwork/
  25. assistant/
  26. bleak/
  27. build-attribution/
  28. build-common/
  29. compose-designer/
  30. compose-ide-plugin/
  31. connection-assistant/
  32. dagger/
  33. databinding/
  34. deploy/
  35. designer/
  36. designer-perf-tests/
  37. emulator/
  38. gradle-dsl/
  39. gradle-tooling/
  40. ide-perf-tests/
  41. jps-plugin/
  42. kotlin-integration/
  43. layout-inspector/
  44. layout-ui/
  45. layoutlib/
  46. layoutlib-loader/
  47. layoutlib-native/
  48. lint/
  49. manual-tests/
  50. mlkit/
  51. native/
  52. native-symbolizer/
  53. nav/
  54. observable/
  55. observable-demo/
  56. observable-ui/
  57. old-agp-tests/
  58. profilers/
  59. profilers-android/
  60. profilers-atrace/
  61. profilers-ui/
  62. project-system/
  63. project-system-gradle/
  64. project-system-gradle-psd/
  65. project-system-gradle-sync/
  66. resources-base/
  67. room/
  68. rt/
  69. sdk-updates/
  70. smali/
  71. studio/
  72. studio-updater/
  73. swingp/
  74. sync-perf-tests/
  75. transport-database/
  76. uitest-framework/
  77. ultimate/
  78. updater-ui/
  79. whats-new-assistant/
  80. wizard/
  81. wizard-model/
  82. .editorconfig
  83. .gitignore
  84. get_aosp_changes.sh
  85. icon-robots.txt
  86. README.md
README.md