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

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


I am attempting to debug a .NET MAUI Android app on a bodily gadget, however I can not 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.primary(BundleToolMain.java:117)
    at com.android.instruments.construct.bundletool.BundleToolMain.primary(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.primary(BundleToolMain.java:117)
    at com.android.instruments.construct.bundletool.BundleToolMain.primary(BundleToolMain.java:55)
Brought on by: 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
Brought on by: 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 utterly uninstalled earlier than attempting
    once more.
  • Ran adb units to confirm that the gadget is related—it
    does seem within the checklist of units.
  • 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 attempting 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 instances.
  • Manufacturing facility Reset the Problematic Gadget:
    After a manufacturing unit reset, I used to be capable of debug efficiently as soon as, however the subject returned after that.
  • Switched to a special Huawei gadget, and the app installs efficiently on that gadget, however I can not use different units.

Improvement Atmosphere:

  • 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 Units:

  • 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 Observe 9 Professional (MIUI World v14.0.5, Android v12SKQ1.211019.001)
  • Huawei P30 Lite (EMUI v12.0.0)
  • Motorola Edge 20 (Android v13)

I admire any insights or options on this subject. If anybody has encountered the same drawback or has a dependable workaround, I’d love to listen to your ideas. Thanks prematurely in your assist!

LEAVE A REPLY

Please enter your comment!
Please enter your name here