An android project, which was initially published in google playstore needed few updates. After the changes, the Generate Signed Bundle / APK is not generating any file. It does not give any message or warning in the event log.
It generates unsigned release files when using Build > Generate APK. That file is rejected by google play store with the following message.
You uploaded an APK with an invalid signature (learn more about signing). Error from apksigner: ERROR: JAR_SIG_NO_SIGNATURES: No JAR signatures