ios – Can’t Set up or Debug .NET MAUI Android App on Bodily Gadget (ADB Gadget Not Discovered)


I am making an attempt to debug a .NET MAUI Android app on a bodily gadget, however I can’t set up the package deal on my gadget. Each time I attempt to deploy the app, I get the next error:

  1>com.aidplex.backbrace.apks: Error BT0000 : The APKs have been extracted within the listing: /var/folders/x0/5ng1n64x55lbc92n87txsw800000gn/T/12575039403383254367
10:10:15 E/377791216: gadget 'RFCWA0E38TK' not discovered
com.android.ddmlib.AdbCommandRejectedException: gadget 'RFCWA0E38TK' not discovered
    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.set up(SplitApkInstaller.java:76)
    at com.android.ddmlib.inner.DeviceImpl.installPackages(DeviceImpl.java:1166)
    at com.android.instruments.construct.bundletool.gadget.DdmlibDevice.installApks(DdmlibDevice.java:180)
    at com.android.instruments.construct.bundletool.instructions.InstallApksCommand.lambda$execute$1(InstallApksCommand.java:234)
    at com.android.instruments.construct.bundletool.gadget.AdbRunner.run(AdbRunner.java:81)
    at com.android.instruments.construct.bundletool.gadget.AdbRunner.run(AdbRunner.java:61)
    at com.android.instruments.construct.bundletool.instructions.InstallApksCommand.execute(InstallApksCommand.java:233)
    at com.android.instruments.construct.bundletool.BundleToolMain.essential(BundleToolMain.java:117)
    at com.android.instruments.construct.bundletool.BundleToolMain.essential(BundleToolMain.java:55)

[BT:1.15.1] Error: Set up of the app failed.
com.android.instruments.construct.bundletool.mannequin.exceptions.CommandExecutionException
 Set up of the app failed.
    at com.android.instruments.construct.bundletool.mannequin.exceptions.InternalExceptionBuilder.construct(InternalExceptionBuilder.java:57)
    at com.android.instruments.construct.bundletool.gadget.DdmlibDevice.installApks(DdmlibDevice.java:196)
    at com.android.instruments.construct.bundletool.instructions.InstallApksCommand.lambda$execute$1(InstallApksCommand.java:234)
    at com.android.instruments.construct.bundletool.gadget.AdbRunner.run(AdbRunner.java:81)
    at com.android.instruments.construct.bundletool.gadget.AdbRunner.run(AdbRunner.java:61)
    at com.android.instruments.construct.bundletool.instructions.InstallApksCommand.execute(InstallApksCommand.java:233)
    at com.android.instruments.construct.bundletool.BundleToolMain.essential(BundleToolMain.java:117)
    at com.android.instruments.construct.bundletool.BundleToolMain.essential(BundleToolMain.java:55)
Attributable to: com.android.ddmlib.InstallException: gadget 'RFCWA0E38TK' not discovered
    at com.android.ddmlib.SplitApkInstaller.set up(SplitApkInstaller.java:94)
    at com.android.ddmlib.inner.DeviceImpl.installPackages(DeviceImpl.java:1166)
    at com.android.instruments.construct.bundletool.gadget.DdmlibDevice.installApks(DdmlibDevice.java:180)
    ... 6 extra
Attributable to: com.android.ddmlib.AdbCommandRejectedException: gadget 'RFCWA0E38TK' not discovered
    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.inner.DeviceImpl.executeShellCommand(DeviceImpl.java:702)
    at com.android.ddmlib.SplitApkInstallerBase.installAbandon(SplitApkInstallerBase.java:108)
    at com.android.ddmlib.SplitApkInstaller.set up(SplitApkInstaller.java:82)
    ... 8 extra

What I’ve Tried:

  • Ensured that the package deal was fully uninstalled earlier than making an attempt
    once more.
  • Ran adb gadgets to confirm that the gadget is linked—it
    does seem within the listing of gadgets.
  • Restarted ADB server utilizing: adb kill-server adb start-server
  • Verified that USB debugging is enabled on the gadget.
  • Uninstalled the app manually earlier than making an attempt to put in it once more.
  • Disabled and re-enabled Developer Mode and USB Debugging.
  • Revoked all USB debugging authorizations and reauthorized.
  • Switched between USB debugging and wi-fi debugging.
  • Restarted each my PC and the cellular gadget a number of occasions.
  • Manufacturing facility Reset the Problematic Gadget:
    After a manufacturing facility reset, I used to be in a position to debug efficiently as soon as, however the situation returned after that.
  • Switched to a distinct Huawei gadget, and the app installs efficiently on that gadget, however I can’t use different gadgets.

Growth Setting:

  • OS: MacOS Sequoia 15.2 – 15.3
  • IDE: JetBrains Rider 2024.3.4 (Construct #RD-243.23654.126, constructed on January 20, 2025)
  • Android SDK: Construct Instruments: 36.0.0-rc4 (additionally examined with rc3, rc1)
  • SDK Model: 35.0.1

Examined Cellular Gadgets:

  • Samsung Galaxy A34 5G (One UI v6.1, Android v14)
  • iPhone 11 (iOS 18.2.1)
  • Xiaomi Poco F5 (HyperOS 1.0.17.0 Andoid v14 UKQ1.230804.001)
  • Redmi Be aware 9 Professional (MIUI World v14.0.5, Android v12SKQ1.211019.001)
  • Huawei P30 Lite (EMUI v12.0.0)
  • Motorola Edge 20 (Android v13)

I recognize any insights or solutions on this situation. If anybody has encountered an identical downside or has a dependable workaround, I’d love to listen to your ideas. Thanks upfront to your assist!

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles