XA0137: The 'run-as' command failed with 'run-as: couldn't stat /data/user/0/com.test.demo: No such file or directory '.

Nagarjuna Gadikota 1 Reputation point
2021-09-17T16:33:28.817+00:00

Hi all,

My app not installing in release mode, Even I tried generating apk and installing but app is crashing every time.
I'm getting following error

Start debugging Android application failed
Start debugging Android application ...

am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.test.demo/crc6409718adb1cab00c7.SplashActivity"
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.test.demo/crc6409718adb1cab00c7.SplashActivity }

Error type 3
Error: Activity class {com.test.demo/crc6409718adb1cab00c7.SplashActivity} does not exist.

The application could not be started. Ensure that the application has been installed to the target device and has a launchable activity (MainLauncher = true).

Additionally, check Build->Configuration Manager to ensure this project is set to successfully
for this configuration.
Start debugging Android application failed

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,378 questions
{count} votes

6 answers

Sort by: Most helpful
  1. Ulf Andersson 0 Reputation points
    2025-03-14T08:54:08.8766667+00:00

    For me, this worked as a charm!

    In Android Adb Command Prompt, type

    adb -s <DEVICE> uninstall <PACKAGE>

    should give you the word Success

    adb -s <DEVICE> shell pm trim-caches 99999999

    0 comments No comments

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.