Net Maui Android debug on Physical device

Antonio Moscati 0 Reputation points
2025-06-03T15:36:24.6533333+00:00

I should debug an android app to verify the correct functioning of the InAppBilling package by james Montemagno, as per instructions (https://jamesmontemagno.github.io/InAppBillingPlugin/TestingAndTroubleshooting.html)

I have to debug on a physical device and with a signed APK.

The device is set up for USB debugging and the Google USB drivers are installed.

The problem arises when I go to distribute the application in debug mode because I get this error:

The vsdbg debug session for project xxxx' has been stopped

In fact the app is loaded on the device but I can't debug it which instead works correctly on the emulator.(Visual studio 2022 with net8.0 - android34)

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,148 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.