Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No signature found in package of version 2 #10

Open
gwl002 opened this issue Nov 22, 2021 · 0 comments
Open

No signature found in package of version 2 #10

gwl002 opened this issue Nov 22, 2021 · 0 comments

Comments

@gwl002
Copy link
Owner

gwl002 commented Nov 22, 2021

最近googleplay要求将android target version升级至30,不然不能上store。升级后又发现在android11上install失败。查找原因发现,在安卓11的机器上adb install后出现这个错误,search后发现原来android11以后不再支持v1签名,必须使用v2签名。

image

v1签名和v2签名的区别

V1:可对签名后的文件,作适当修改,并重新压缩。 
V2:不能对签名后的 APK作任何修改,包括重新解压。因为它是针对字节进行的签名,所以任何改动都会影响最终结果。

解决方案

  1. 手动
signingConfigs {
        debug {
            storeFile file('xxxxx.jks')
            storePassword '123456'
            keyAlias 'dev'
            keyPassword '123456'
            v2SigningEnabled true
        }
    }
  1. appcenter
    删掉keystore文件,重新上传就自动好了
    https://github.com/microsoft/appcenter/issues/1990#issuecomment-856960698
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant