question

aehrlich avatar image
aehrlich asked ssgopal commented

V2 APK signature scheme is not supported.

So, what's everyone doing now that Android Studio does not offer a V1 signing option, but Clover requires V1 signing? I put this in my gradle config, but it doesn't do anything:


signingConfigs {
    release {
        v1SigningEnabled true
        v2SigningEnabled false
    }
}
Clover Android SDK
10 |2000

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

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered ssgopal commented

There is a bit more to it, see https://docs.clover.com/docs/generating-a-signed-apk for the changes you will need to make to your build.gradle.

On step 6 you may need to replace:

enableV1Signing true // Clover app APKs must use V1 signing (JAR signing) 
enableV2Signing false // prevents APKs from being signed with V2 scheme

With:

v1SigningEnabled true  // Clover app APKs must use V1 signing (JAR signing)
v2SigningEnabled false  // prevents APKs from being signed with V2 scheme
2 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.

aehrlich avatar image aehrlich commented ·

I think that worked, but do you know why the apk is in

"app/build/intermediates/apk/release/app-release.apk"
instead of {projectRoot}/{moduleName}/build/outputs/apk/release

?

0 Likes 0 ·
ssgopal avatar image ssgopal aehrlich commented ·
Does this method still work? I created an unsigned apk, then signed it with APKSigner as given in the instructions. Then verified that V1 signing is true and V2 is false using APKSigner verify. But when I upload this APK to the sandbox I keep getting the error that only v1 signatures are supported.
0 Likes 0 ·

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