Argiris Mouratidis
Argiris Mouratidis

Reputation: 69

Cannot Install or Debug .NET MAUI Android App on Physical Device (ADB Device Not Found)

I'm trying to debug a .NET MAUI Android app on a physical device, but I cannot install the package on my device. Every time I try to deploy the app, I get the following error:

  1>com.package.appname.apks: Error BT0000 : The APKs have been extracted in the directory: /var/folders/x0/5ng1n64x55lbc92n87txsw800000gn/T/12575039403383254367
10:10:15 E/377791216: device 'RFCWA0E38TK' not found
com.android.ddmlib.AdbCommandRejectedException: device 'RFCWA0E38TK' not found
    at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:1258)
    at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:1277)
    at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:600)
    at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:758)
    at com.android.ddmlib.SplitApkInstaller.uploadApk(SplitApkInstaller.java:140)
    at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:76)
    at com.android.ddmlib.internal.DeviceImpl.installPackages(DeviceImpl.java:1166)
    at com.android.tools.build.bundletool.device.DdmlibDevice.installApks(DdmlibDevice.java:180)
    at com.android.tools.build.bundletool.commands.InstallApksCommand.lambda$execute$1(InstallApksCommand.java:234)
    at com.android.tools.build.bundletool.device.AdbRunner.run(AdbRunner.java:81)
    at com.android.tools.build.bundletool.device.AdbRunner.run(AdbRunner.java:61)
    at com.android.tools.build.bundletool.commands.InstallApksCommand.execute(InstallApksCommand.java:233)
    at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:117)
    at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:55)

[BT:1.15.1] Error: Installation of the app failed.
com.android.tools.build.bundletool.model.exceptions.CommandExecutionException
 Installation of the app failed.
    at com.android.tools.build.bundletool.model.exceptions.InternalExceptionBuilder.build(InternalExceptionBuilder.java:57)
    at com.android.tools.build.bundletool.device.DdmlibDevice.installApks(DdmlibDevice.java:196)
    at com.android.tools.build.bundletool.commands.InstallApksCommand.lambda$execute$1(InstallApksCommand.java:234)
    at com.android.tools.build.bundletool.device.AdbRunner.run(AdbRunner.java:81)
    at com.android.tools.build.bundletool.device.AdbRunner.run(AdbRunner.java:61)
    at com.android.tools.build.bundletool.commands.InstallApksCommand.execute(InstallApksCommand.java:233)
    at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:117)
    at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:55)
Caused by: com.android.ddmlib.InstallException: device 'RFCWA0E38TK' not found
    at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:94)
    at com.android.ddmlib.internal.DeviceImpl.installPackages(DeviceImpl.java:1166)
    at com.android.tools.build.bundletool.device.DdmlibDevice.installApks(DdmlibDevice.java:180)
    ... 6 more
Caused by: com.android.ddmlib.AdbCommandRejectedException: device 'RFCWA0E38TK' not found
    at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:1258)
    at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:1277)
    at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:600)
    at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:468)
    at com.android.ddmlib.internal.DeviceImpl.executeShellCommand(DeviceImpl.java:702)
    at com.android.ddmlib.SplitApkInstallerBase.installAbandon(SplitApkInstallerBase.java:108)
    at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:82)
    ... 8 more

What I've Tried:

Development Environment:

Tested Mobile Devices:

I appreciate any insights or suggestions on this issue. If anyone has encountered a similar problem or has a reliable workaround, I’d love to hear your thoughts. Thanks in advance for your help!

Upvotes: -2

Views: 105

Answers (0)

Related Questions