Search code examples
visual-studiomaui

Unable to Install App from Visual Studio – Error: Detecting existing process


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:

  • Microsoft Visual Studio Community 2022 (64-bit) - Preview Version 17.11.0 Preview 7.0
  • Microsoft Visual Studio Community 2022 (64-bit) - Preview Version 17.9.0 Preview 2.1
  • Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.10.5

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.


Solution

  • 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.