question

BradleyPlett-8862 avatar image
0 Votes"
BradleyPlett-8862 asked WenyanZhang-MSFT answered

"Only releases with status draft may be created on draft app"

I have been successfully publishing my Maui app to the Google Play Store. However, something changed recently (I’m assuming it was moving to RC1) and now when I try to publish I get the message “Only releases with status draft may be created on draft app.”. I don’t think I’m doing anything differently – I’m still just publishing to “Internal”. Is there a new way to mark an app as “draft”?

On a related subject, I notice a significant overlap between what’s in the “AndroidManifest.xml” and the entries in the “csproj” file (e.g. “AndroidManifestApplicationPackageName” == “package”, “AndroidManifestApplicationVersionNumber” == “android:versionCode”, “AndroidManifestApplicationVersionName” == “android:versionName”). Which is the “correct” place to put these entries, or do we need to keep both up-to-date? Is there any publicly available guidance on this?

Thanks in advance!
Brad.

P.S. I am able to upload the package manually and create a new release just fine.

dotnet-maui
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I’m still just publishing to “Internal”. Is there a new way to mark an app as “draft”?

Your app status is “ draft ” and you want to publish it to " internal ", right?

I confused about this " I am able to upload the package manually and create a new release just fine", would you mind sharing more details? How did you create this release version? Did you use any automated packaging tools?

0 Votes 0 ·

Thanks for the response!

Yes, as far as I know my app status is "draft", and yes, I'm trying to publish to "internal".

If I create an "Archive" in Visual Studio and then click the "Distribute" button I get the error message. If, on the other hand, I navigate to the "Google Play Console", create a new release, and upload the same archive that was created by the "Archive" step in VS, it works like a charm.

I'm not sure what other details to provide.

0 Votes 0 ·

1 Answer

WenyanZhang-MSFT avatar image
0 Votes"
WenyanZhang-MSFT answered

Hello,

At this time, publishing is only supported through the .NET command line interface. You need to open a terminal and navigate to the project's folder. Run the dotnet publish command, and there are four parameters, please check https://docs.microsoft.com/en-us/dotnet/maui/android/deployment/overview#publish

Best Regards,
Wenyan Zhang


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.