AS I lost my Keystore, and was unable to return it back, read google documentation about getting a new key.
Google: If you’ve lost your private upload key or it’s been compromised, you can create a new one, and then ask your account owner to contact support to reset the key. When contacting support, make sure your account owner attaches the upload_certificate.pem file.
I emailed google at the following link:
https://support.google.com/googleplay/android-developer/contact/key
They sent me the following commands to re-generate keystore and certificate.pem:
Here’s how to generate and register a new upload key:
Follow the instructions in the Android Studio Help Center to generate a new key. It must be different from any previous keys. Alternatively, you can use the following command line to generate a new key:
keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks
This key must be a 2048 bit RSA key and have 25-year validity.
Export the certificate for that key to PEM format:
keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks
Reply to this email and attach the upload_certificate.pem file, after replying, they will send an email mentioning your key store will be updated after 2 days,
now you have a new key store, in order to generate a signed bundle keys, you must do the following:
1- Go to the android side in your flutter (2.8.1) project.
2- go to settings> Build, Execution ..> Gradle>
3- change gradle JDK to something between 16 and 11, **JDK 15 worked for me.
note: if you don't have jdk, you can download it in same place Gradle JDK with jdk
download option.
note: you must build your signed app bundle within android only not inside flutter framework.