最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - MAUI App Crashes Immediately After Installing Signed APK on Android - Stack Overflow

programmeradmin0浏览0评论

I created a default .NET MAUI app by selecting "Create a new MAUI project" in Visual Studio without modifying any code. The only change I made was in the .csproj file to directly generate an .apk instead of an .aab by adding:

<AndroidPackageFormat>apk</AndroidPackageFormat>

I built the project in Release mode, signed the generated APK using my own keystore (not purchased), and transferred the file to my phone via WhatsApp.

APK installation was successful, but when I launch the app, it crashes immediately. The app runs fine in Debug mode with Emulator from Visual Studio.

What could be causing this issue? How can I fix it?

IMPORTANT: I also tried generating the .aab file, converting it to .apk file, sign it with keystore and install it by USB debugging connection to phone, same results i.e. the app installs but crashes immediately.

Emulator View (both Release and Debug)

发布评论

评论列表(0)

  1. 暂无评论