Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 595
Et Andrea Avatar asked Dec 26 '14 09:12

Et Andrea


2 Answers

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.

like image 173
Roope Hakulinen Avatar answered Sep 18 '22 12:09

Roope Hakulinen


Go to Build/Configuration manager and check if you have choosen Debug configuation instead of Release.

like image 27
Andy Avatar answered Sep 21 '22 12:09

Andy