简体   繁体   English

Google 开发者控制台上发布的错误应用程序是什么?

[英]What is the error app publishing on the Google developer console?

I want to upload an app to the Google Developer Console, but when I upload the app, it gives the following error:我想将应用程序上传到 Google Developer Console,但是当我上传应用程序时,出现以下错误:

You uploaded an APK with an invalid signature (learn more about signing).您上传的 APK 签名无效(了解有关签名的更多信息)。 Error from apksigner: ERROR: MIN_SIG_SCHEME_FOR_TARGET_SDK_NOT_MET: Target SDK version 30 requires a minimum of signature scheme v2;来自 apksigner 的错误:错误:MIN_SIG_SCHEME_FOR_TARGET_SDK_NOT_MET:目标 SDK 版本 30 需要最低签名方案 v2; the APK is not signed with this or a later signature scheme APK 未使用此签名方案或更高版本的签名方案进行签名

See the screenshot I uploaded here.请参阅我在这里上传的屏幕截图。 How can I solve this problem?我怎么解决这个问题?

Make sure you are building the 'release' variant, after signing it with an upload key.在使用上传密钥对其进行签名后,请确保您正在构建“发布”变体。 Also, I would recommend you sign in for Google App Signing, which will certainly solve these issues and keep your signing key secure as well.此外,我建议您登录 Google App Signing,这肯定会解决这些问题并确保您的签名密钥安全。 The schema problems will be taken care of by Google itself then.架构问题将由 Google 自己处理。 There is an option in the console to opt-in to Play Signing控制台中有一个选项可以选择加入 Play Signing

In the Generate Signed Bundle or APK dialog, after you select the jks key stroke path, you should see a page with 2 options在 Generate Signed Bundle or APK 对话框中,选择 jks keystroke path 后,您应该会看到一个包含 2 个选项的页面

  1. Build Variants: debug or release构建变体:调试或发布

  2. Signature Versions: V1 (Jar Signature) and/or V2 (Full APK signature)签名版本:V1(Jar 签名)和/或 V2(完整的 APK 签名)

You should make sure V2 is checked when build.您应该确保在构建时检查 V2。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM