devonfw / ide

Tool to automate setup and update of development environment (esp. for Java projects).
Apache License 2.0
33 stars 101 forks source link

Error opening android-studio: Could not find templates path #1258

Closed hohwille closed 1 year ago

hohwille commented 1 year ago
$ devon android-studio
Success: run command mkdir
Starting installation of android-studio in version 2023.1.1.11 to /d/projects/XXX/software/android-studio
Trying to download android-studio-2023.1.1.11-windows.zip from https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2023.1.1.11/android-studio-2023.1.1.11-windows.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   541  100   541    0     0    959      0 --:--:-- --:--:-- --:--:--   962
100 1074M  100 1074M    0     0  3751k      0  0:04:53  0:04:53 --:--:-- 5342k
Download of android-studio-2023.1.1.11-windows.zip from https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2023.1.1.11/android-studio-2023.1.1.11-windows.zip succeeded.
Checksum 77d50b0d982faedd98b73e08c922f4e20407a4a507eff2dcb3c6a1ce01b208ac is correct
Success: run command unzip
Successfully extracted archive android-studio-2023.1.1.11-windows.zip to /d/projects/XXX/updates/extracted/android-studio
Success: run command mv
Successfully installed android-studio
The software android-studio has been added. You need to rerun 'devon' command without arguments or restart your terminal to update your PATH so the newly installed software will be found.
{
  "name": "Android Studio",
  "version": "dev build",
  "versionSuffix": "EAP",
  "buildNumber": "231.9161.38.2311.__BUILD_NUMBER__",
  "productCode": "AI",
  "dataDirectoryName": "AndroidStudioPreview2023.1",
Success: verify installation of android-studio (head)

******** ATTENTION ********
Could not find templates path at /d/projects/XXX/settings/android-studio/workspace
We are sorry for the inconvenience. Please check the above errors, resolve them and try again.

We need to make our workspace update more robust. If there is no workspace configuration in settings, then the IDE (android-studio) should open with the default settings instead of raising an error and preventing the user to launch the IDE.