MATLAB Answers

Hardware Setup - Select Your Android Device : adb.exe has stopped working

2 views (last 30 days)
Mauro Fusco
Mauro Fusco on 10 Mar 2019
Edited: Mauro Fusco on 18 Mar 2019
I have been trying to setup the android hardware with androidhwsetup.
The process goes ok until I have to select the device (a samsung A2017). There is simply no option showing the phone, and when I press
the refresh button, I get the adb.exe window showing message "adb.exe has stopped working" (see the picture attached, also to understand the
stage of hardware setup where I get blocked).
I have also tried with a different samsung phone and a different model, but again there is no model to select. Sometimes I manage not to get the adb.exe error message, but still no device is available to be selected.
Note that all previous steps of setting developer mode on the phone, allowing for USB debugging mode, and accepting exchange of data with PC have been done.
Any idea for a solution?
Thanks in advance!


Sign in to comment.

Answers (1)

Sruthi Yenugula
Sruthi Yenugula on 13 Mar 2019
Restart your PC and try the hardware setup again. Still if your facing the same issue, contact technical support for quick resolution.


Mauro Fusco
Mauro Fusco on 13 Mar 2019
Hi Sruthi,
Indeed, I restarted multiple times, but this did not solve the problem.
I also unistalled and re-installed the Android development suite, and tried other things like installing a different driver for the device, or disabling Data Execution Prevention for the adb.exe and re-starting, but none of those worked.
I have already contacted mathworks support (on Monday 11th, Case # 03520035), and awaiting for help.
Sruthi Yenugula
Sruthi Yenugula on 14 Mar 2019
Hi Mauro,
Thanks for your patience. Can you please try the following
Use a different USB cable and check, if that doesn't work, do the following
1) Uninstall the Android Studio
2) make sure, you delete the following folders, replace <username> with your username
3) Install Android studio and try Hardware setup again.
Mauro Fusco
Mauro Fusco on 18 Mar 2019
Hi Shruti,
Thank you for your support, and for the support of your colleagues. Unfortunately, the suggested actions did not bring to a solution, which may still be useful if the problem is experienced by other users. Myself, I have now changed laptop, and with that the hardware setup goes now smoothly. So, indeed a possible "solution" for other users is "try to change laptop"... hihi
Have a nice evening,

Sign in to comment.

Sign in to answer this question.