androidvisual-studiocordovamulti-device-hybrid-apps

Unable to debug cordova app due to adb.exe


I have just created a plain 'helloworld' cordova app on Visual Studio. I can't debug my app on either android emulator or device though it works only in the ripple emulator. Please help.

I keep getting error "Unable to start mypathname/adb.exe"

enter image description here

  1. Tried adb kill-server and adb start-server in cmd (result: server restarted successfully)

  2. Installed necessary mobile driver and upgraded my driver too

  3. Configured to set allow for USB debugging under Developer options

  4. Devices are detected and shown enter image description here


Solution

  • Which Android versions are you using? There seems to be known issue for Visual Studio & Cordova that says

    When using the VS Debugger with Android < 4.4 emulators, devices, or Apache Ripple™: While debugging to devices with Android versions <4.4, an error popup shows up “Unable to start program” citing “adb.exe” as the cause. The app should still load and work on your device, without debugger support.

    and the status seems to be No fix available.