APK cannot install

后端 未结 2 782
心在旅途
心在旅途 2021-01-19 10:22

Our app, used to work. The last update published 2 and a half weeks ago when the apk file created and worked properly.

The last 2 days when we are trying to create

相关标签:
2条回答
  • 2021-01-19 10:25

    I had a similar issue before while releasing apk, i was not able to install it, that was happening if the signature v2 is checked.

    Unfortunately, I am not really sure why it causes such problems! anyway if you checked v2 try to uncheck it and use only v1 (the jar signature).


    Also thanks to @codeMagic for providing us with this STO thread about differences between both types.

    0 讨论(0)
  • 2021-01-19 10:49

    I fixed that the same which mentioned above, by applying v1 signing only and turn off v2 signing, moreover that can be done through gradle build file by settings value for v1SigningEnabled & v2SigningEnabled as the following:

    signingConfigs {
        staging {
            keyAlias *****
            keyPassword *****
            storeFile file(*****)
            storePassword *****
            v1SigningEnabled true
            v2SigningEnabled false
        }
        release {
            keyAlias *****
            keyPassword *****
            storeFile file(*****)
            storePassword *****
            v1SigningEnabled true
            v2SigningEnabled false
        }
    }
    
    0 讨论(0)
提交回复
热议问题