Android Studio and apksigner won't sign app with v1 signature
07:45 05 Dec 2021

I have an app with minSdkVersion = 24 but when I use Android Studio signing dialog, the apk never gets signed by v1 (the store I use enforces to include v1 signatures). I tried gradle options but it doesn't work. Also, I tried to use apksigner with options --v1-signing-enabled true and --max-sdk-version 23 to force v1 signing but it doesn't seem to work. apksigner verify also reports that the apk is not signed with v1.

Is there a way to force Android Studio or apksigner to always sign with v1 despite minSdkVersion >= 24?

android android-studio apksigner