Below are the steps I follow for android app release.
- ionic cordova build android --prod --release
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore vfl-key.keystore app-release-unsigned.apk vfl
- ./zipalign -v 4 app-release-unsigned.apk vfl.apk
While uploading apk file on play store, I am getting this error:
You uploaded an APK with an invalid signature ([learn more about signing]). Error from apksigner: ERROR: MIN_SIG_SCHEME_FOR_TARGET_SDK_NOT_MET: Target SDK version 31 requires a minimum of signature scheme v2; the APK is not signed with this or a later signature scheme.