question

vhernandez avatar image
vhernandez asked David Marginian Deactivated commented

V2 APK signature scheme is not supported.

I got V2 APK signature scheme is not supported, when I try to push a new apk, I signed it with the v1, however the sandbox says


SandboxClover Flex
1603849843642.png (24.8 KiB)
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian Deactivated answered

Have you tried searching this community? There are several results for this type of error, here is one that may help - https://community.clover.com/questions/15983/v2-apk-signature-scheme-is-not-supported.html

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jeffrey Blattman avatar image
Jeffrey Blattman answered

You must sign with V1, and NOT sign with V2.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

01928-7325x2 avatar image
01928-7325x2 answered David Marginian Deactivated commented

FYI, the latest version of Android Studio is already remove the V1 option.

8 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image David Marginian ♦♦ commented ·

Yes, devs will need to use older Android Studio or command line tools:
https://developer.android.com/studio/command-line/apksigner

0 Likes 0 ·
pritesh25 avatar image pritesh25 David Marginian ♦♦ commented ·

@David, Please share command line tools with complete steps because i tried multiple resource on internet to achieve it but still i'm facing challenges while generating apk from command line with V1 Signature. Below is top resource which i tried.


  1. https://developer.android.com/studio/command-line/apksigner
  2. https://programmer.help/blogs/generate-x509.pem-and-pk8-files-with-shell-script-and-sign-them.html
  3. https://stackoverflow.com/questions/25806433/signapk-pem-file-and-pk8-file
  4. http://www.londatiga.net/it/how-to-sign-apk-zip-files/


Whereas If i use older Android Studio then i will not have benefit of Android Studio updates/feature anymore in future.


So, i request you to share complete steps of generating signed apk from command line with V1 Signature.

0 Likes 0 ·
jayachandranvenugopalan avatar image jayachandranvenugopalan pritesh25 commented ·
                        
  1. //use this signed config file in ur bulid gradle module i m using new verison android studio only for mr it is working fine
  2. signingConfigs{
  3. release{
  4. storeFile file(keystore_file)
  5. storePassword keystore_password
  6. keyAlias key_alias
  7. keyPassword key_password
  8. enableV1Signing true // Clover app APKs must use V1 signing (JAR signing)
  9. enableV2Signing false // prevents APKs from being signed with V2 scheme
  10. }
  11. }

1 Like 1 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community