Error: missing options ... (Keystore Path, Keystore Password, Keystore Key Alias, Keystore Key Password)

I have a fresh generated Angular App with capacitor 6. It runs fine in the browser. And ng build run without any problems.

If i try to build for Android it throws: [error] Missing options. Please supply all options for android signing. (Keystore Path, Keystore Password, Keystore Key Alias, Keystore Key Password)

Android Studio has generated a keystore for debugging in /home/username/.android/debug.keystore. But, no idea with which password or what content.

capacitor.config.ts:

  android: {
    buildOptions: {
      keystorePath: '/home/username/.android/debug.keystore',
      keystorePassword: '',
    }
  }

Configuring the keystore does not change anything.

My Operating System is Ubuntu 22.04.

Why is my newly generated app not working? Can anyone give a hint?

Create a KeyStore help.
It seems that we can no longer do without.

Can you give more insights on your solution please? I’m having the same issue.

I created the keystore with Android Studio.
Then i configured the capacitor.config.ts as follows:

  android: {
    buildOptions: {
      releaseType: 'APK',
      keystorePath: '/home/username/CustomFolder/myCustomName.jks',
      keystorePassword: 'verysecret',
      keystoreAlias: 'custom_alias',
      keystoreAliasPassword: 'alsosecret'
    }
  }