To generate SHA-1 and SHA-256 fingerprints for an already uploaded app in the Google Play Console, you'll need to follow these steps:
Open the terminal in VS Code by pressing Ctrl+Shift+~
(Windows) or Cmd+Shift+~
(Mac).
Type the following command in the terminal to navigate to the folder where your Android app is located:
cd /path/to/your/android/app
Note: Replace "/path/to/your/android/app" with the actual path to your app in your local file system.
keytool -exportcert -alias <your-key-name> -keystore <path-to-production-keystore> -list -v
Note: Replace "<your-key-name>" with the alias of your production keystore, and "<path-to-production-keystore>" with the path to your production keystore file.
Enter the keystore password when prompted and press Enter.
The command will output the SHA-1 fingerprint for your app. To generate the SHA-256 fingerprint, you can use the following command:
keytool -exportcert -alias <your-key-name> -keystore <path-to-production-keystore> -list -v -extra-arg -androidv2
Enter the keystore password when prompted and press Enter.
The command will output the SHA-256 fingerprint for your app.
That's it! You've successfully generated SHA-1 and SHA-256 fingerprints for your Android app using VS Code. Note that you'll need to add these fingerprints to your app's listing in the Google Play Console to enable certain features like Google Sign-In or Google Maps API.