Missing settings.gradle file

I am getting the following error as the project in node_modules\@capacitor does not have a settings file in JetBrain’s IntelliJ Idea.

Project directory 'C:\Users\...\GitHub\xyz\frontend\node_modules\@capacitor\android\capacitor' is not part of the build defined by settings file 'C:\Users\...\GitHub\xyz\settings.gradle'. If this is an unrelated build, it must have its own settings file.

After running npx cap doctor:

   Capacitor Doctor

Latest Dependencies:

  @capacitor/cli: 2.2.0

  @capacitor/core: 2.2.0

  @capacitor/android: 2.2.0

  @capacitor/electron: 2.2.0

  @capacitor/ios: 2.2.0

Installed Dependencies:


  @capacitor/cli 2.2.0

  @capacitor/core 2.2.0

  @capacitor/android 2.2.0

  @capacitor/ios 2.2.0

  @capacitor/electron 2.1.0

[success] Android looking great! �
[error] Xcode is not installed