Sunday, February 8, 2015

Android Studio ADB Doesn't Recognize Samsung Galaxy S5

Problem:  You're trying to test your awesome Android/Java code on a real live phone connected via USB, but Android Studio doesn't recognize your device no matter what you do.  Well, here is a checklist of items to make sure you have to ensure your device is recognized:

In Short:
  • Turn on Debugging Options and enable USB Debugging
  • Install Google USB Drivers from SDK Menu in Android Studio
  • Install "Samsung USB Driver for Mobile Phones"
  • Restart adb and check if your phone is in the list
  • Accept the RSA Fingerprint verification on phone
Details:
  • Connect your device via USB to your computer
  • Turn on Debugging options on your phone by tapping "Build Number" seven times in the "About Device" in your phone settings
  • Open the "Developer Options" in your phone settings and make sure "USB Debugging" is checked
  • Go to the "SDK Manager" of Android Studio and install "Google USB Driver"
  • Install "Samsung USB Driver for Mobile Phones" from Samsung:  http://developer.samsung.com/technical-doc/view.do?v=T000000117
  • Restart ADB and verify device from command line (I only typed adb devices):  
    • C:\Users\hans\AppData\Local\Android\sdk\platform-tools\adb kill-server
    • C:\Users\hans\AppData\Local\Android\sdk\platform-tools\adb start-server
    • C:\Users\hans\AppData\Local\Android\sdk\platform-tools\adb devices
  • Somewhere in this last step, your phone will prompt you for an "RSA Fingerprint" verification.  In this case, you accept.  If you see this, then you're GOLDEN!

2 comments: