I'm having trouble installing my MAUI app directly from Visual Studio. Whenever I try to install it, I encounter errors, and the app breaks during the installation process.
Development Environment:
Error Message:
12:57:53:294 Start debugging Android application ...
12:57:53:294 Forwarding debugger port 8809
12:57:53:294 Detecting existing process
12:57:54:063 > am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.companyname.appname/crc64504875b33ff43b35.MainActivity"
12:57:54:386 > Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.companyname.appname/crc64504875b33ff43b35.MainActivity }
How can I resolve this issue?
Update
I have created a sample project and uploaded it here.
I have created a sample project using GitHub and uploaded it here.
To fix the issue, please right click the project --> select Properties --> find Fast deployment in Android option.
After unticking the Fast deployment option, the MAUI app can run on the device without issue.