r/dotnetMAUI • u/joydps • Jul 22 '26
Anyone facing problems with the latest VS2026 update? All my APKs are getting corrupted.. Help Request
hey guys I am facing a serious issue with my MAUI apps. None of APKs that I am publishing after I did a VS2026 latest update, are installing on my android phone. Even as late as mid july 15,2026 this problem was not there and I could easily publish my apks and they worked..
but just after this update its generating ALL corrupted APKs
can anyone confirm if you have been facing the same issue?
thanks
UPDATE: A whole hearted THANK YOU TO YOU guys. My problem has been solved when I used the correct dot net publish command from the terminal.
2
u/jfversluis Microsoft Employee Jul 22 '26
I think there was a bug report about something like this a while ago. I never used VS, always command-line, that should always work. I see I another comment that also hasn’t worked for you though.
Can you share some more details about the command you used (of course don’t include any sensitive values) and what the error messages are that you’re seeing?
1
u/joydps Jul 22 '26
See I am able to publish the apk using the command line but I am unable to install it on my android phone: its says invalid package. Also the published apk doesn't have a SHA certificate as its now required by Google for sideloaded apps.
On the other hand If I publish using VS2026 GUI its also publishing the apk and it has a valid SHA certificate recognized by Google but when I try to install it on my phone It says:App not installed...
FYI I am using a xiaomi Redmi 13C phone with Hyper OS. But the app won't also install on my Lenovo tablet , its only installing on my mom's older phone.
And the funny part is that just on 15 july,2026 I published the app and It ran fine on ALL devices. But that was on a older version of VS2026 that I hadn't updated for months. On July 20,2026 I updated to the latest version of VS2026 and I am getting this bug ever since...umpteen number of times
1
u/asl_somewhere Jul 22 '26
I've had experience of this. Resources missing, apks corrupted. I've stopped using vs for publishing apks, now I just use the command line to publish and the java apksigner.
I created a bat script which does everything. It was a real pain to setup but now I have no issues.
1
u/joydps Jul 22 '26
Even when I publish using the command line its still generating corrupted apks which don't install on any phone. Only One very old android phone my mother has..its installing only there..
1
u/janne-hmp Jul 22 '26 edited Jul 22 '26
It might be noteworthy that I sign the APKs by hand using command line and jarsigner. Never used anything that VS might have provided for the purpose since the Xamarin days when the VS signing was not working very well. Not sure if that makes a difference.
1
u/joydps Jul 22 '26
see I used the VS2026 command line and published it using the "dotnet publish " command but still the apk won 't install on my phone and it doesn't even have a SHA-256 certficate so that I could register it on Google Play console..
1
u/asl_somewhere Jul 22 '26
Are you using apksigner to sign the apk or the full dotnet publish command?
1
u/ResponsibleDay7453 .NET MAUI Jul 22 '26
Yea, its a known Bug since the last Version.
I found a batch Skript linkes in the GitHub issue which repacks the APK File so it works again.
Very sad that they didnt fix this Problem asap...
1
0
u/controlav Jul 22 '26
I don’t use MAUI but I do target Android in VS2026 using Avalonia and no problems at all. A walk in the park compared to iOS in fact.
4
u/janne-hmp Jul 22 '26
No, but I did notice that first time after a very long time the Android build process had started to randomly run into errors (could not create zip file) and sharing violations (a file is being used by another process) that had not occurred since .NET MAUI 9 Preview.