--release produces corrupted apk

facing same issue. the apk file has been corrupted after creating release build

I had the exact same issue.
However --prod build works just fine.
For release, if you sign the apk the problem vanishes.
Not sure of the reasons.

keytool -genkey -v -keystore testapk.keystore -alias testapk -keyalg RSA -keysize 2048 -validity 10000
keytool -importkeystore -srckeystore testapk.keystore -destkeystore testapk.keystore -deststoretype pkcs12

after second command run keystore file changed and problem solved

1 Like

Thanks a lot @rupendra1 You saved my life!! :smiley:

1 Like

welcome [5hivam] any time