I am developing an Android app and I am using Macbook Pro, Android Studio 2.1.2 Build #AI-143.2915827, JRE 1.8.0_91 and Samsung S6 device with Android 6 to test my apps. The problem is that android studio is disconnecting my device after sometime and it is not even showing me in list. I have tried almost every possible solution I have found on internet.
1) Kill adb server and start it again,
2) Unplug and plug back in device,
3) Unplug device, turn off developer mode, turn on developer mode in device, clear usb debugging authorizations, plug back in device,
4) Change SDK default location in macbook,
5) Restart test device and plug in,
6) Download updated SDK and replace old platform-tools folder
7) Tried changing cables
8) Cleaned and reformatted Macbook with new OS
(I found sixth solution here)
and almost every single suggestion/answer I found online. But still it is not working. So does anyone have any idea how can I fix this problem? I am not able to test my application on this device. I do not have any other device and I don't have any other option to test my app. Can anyone tell me if there is a fix for this issue where android studio disconnects test device frequently?
Thanks.