For those who have also encountered this problem.
Android 11+ requires V2 Signing which can be done with apksigner (jarsigner only supports V1 Signing).
apksigner
jarsigner