Before build the app bundle you have to create release.jks file by using the following command on your project terminal:
keytool -genkey -v -keystore release.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key0

when you run the command you have set your storePassword and keyPassword. Make sure you noted the password. You have to set the password on your key.properties file.

Without correct password you will not be able to build the app bundle.
Now for build the app bundle you have to run another command.
flutter build appbundle –build-name=1.0.0 –build-number=1
That will create an app bundle which version will be 1.0.0 and you can upload it on your google play console perfectly