MATLAB Answers

0

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

Asked by Mauro Fusco on 10 Mar 2019
Latest activity Edited by Mauro Fusco on 18 Mar 2019
Hi,
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!

  0 Comments

Sign in to comment.

Products


Release

R2018b

1 Answer

Answer by 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.

  3 Comments

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.
Regards,
Mauro
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
C:\Users\<username>\.android
C:\Users\<username>\AppData\Local\Android\Sdk
3) Install Android studio and try Hardware setup again.
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,
Mauro

Sign in to comment.