简体   繁体   English

由于在发布模式下登录,无法将 MAUI 文件上传到 Playstore

[英]Cannot upload MAUI file to Playstore due to signing in released mode

Hello inte.net people,您好互联网人,

I followed the Maui publication documentation我遵循了 Maui 发布文档

I got the aab file by following this process我按照这个过程得到了aab文件

The results I got are:我得到的结果是:

You uploaded an APK or Android App Bundle that was signed in debug mode.您上传了一个在调试模式下签名的 APK 或 Android App Bundle。 You need to sign your APK or Android App Bundle in release mode.您需要在发布模式下签署您的 APK 或 Android App Bundle。 Find out more about signing.了解有关签名的更多信息。 The Android App Bundle was not signed. Android App Bundle 未签名。

在此处输入图像描述

What can I do to get this right?我该怎么做才能做到这一点?

Tried the same using the documentation provided by microsoft.使用微软提供的文档进行了同样的尝试。 Still getting the same error.仍然得到同样的错误。 I have provided the configuration to be release still getting the issue the app is in debug mode.我已经提供了要发布的配置,但仍然遇到应用程序处于调试模式的问题。

Step: 1: keytool -genkey -v -keystore myapp.keystore -alias key -keyalg RSA -keysize 2048 -validity 10000步骤:1:keytool -genkey -v -keystore myapp.keystore -alias key -keyalg RSA -keysize 2048 -validity 10000

Step: 2:第2步:

<PropertyGroup Condition="$(TargetFramework.Contains('-android')) and '$(Configuration)' == 'Release'">
    <AndroidKeyStore>True</AndroidKeyStore>
    <AndroidSigningKeyStore>myapp.keystore</AndroidSigningKeyStore>
    <AndroidSigningKeyAlias>key</AndroidSigningKeyAlias>
    <AndroidSigningKeyPass>*******</AndroidSigningKeyPass>
    <AndroidSigningStorePass>*******</AndroidSigningStorePass>
</PropertyGroup>

Step: 3: dotnet publish -f:net6.0-android -c:Release步骤:3:dotnet 发布 -f:net6.0-android -c:Release

Probably, you need to compile in Release mode release mode compilation可能,你需要在Release模式下编译发布模式编译

I'm having exactly the same issue.我有完全相同的问题。

Whether I sign via running Visual Studio in Release mode, from the command line, or even from my Azure CI pipeline, Google Play won't let me upload the signed Android App Bundle.无论我是通过在发布模式下运行 Visual Studio、从命令行还是从我的 Azure CI 管道进行签名,Google Play 都不允许我上传已签名的 Android App Bundle。

By the way, if you're looking to generate a signed.aab from your Azure build pipeline, I recommend the following:顺便说一句,如果您希望从 Azure 构建管道生成一个 signed.aab,我推荐以下内容:

https://www.andreasnesheim.no/setting-up-ci-for-your.net-maui-android-app-in-azure-devops/ https://www.andreasnesheim.no/setting-up-ci-for-your.net-maui-android-app-in-azure-devops/

You can then hookup the signed.aab artifact to a release pipeline that pushes to Google Play by doing something like:然后,您可以通过执行以下操作将 signed.aab 工件连接到推送到 Google Play 的发布管道:

https://damienaicheh.github.io/azure/devops/2021/10/25/configure-azure-devops-google-play-en.html https://damienaicheh.github.io/azure/devops/2021/10/25/configure-azure-devops-google-play-en.html

Well, that is what I'm trying to do, at least.好吧,这就是我想要做的,至少。 To my understanding, you first need to create a manual release from Google Play in order for your release pipeline to be able to find where to deploy your app.据我了解,您首先需要从 Google Play 创建一个手动版本,以便您的发布管道能够找到部署您的应用程序的位置。 This is why I'm running into the issue above.这就是我遇到上述问题的原因。

Any future updates on this would be greatly appreciated!对此的任何未来更新将不胜感激!

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

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