How to Enable USB-Debugging with Nexus 5 for Android Studio
来源:互联网 发布:ubuntu 日志 编辑:程序博客网 时间:2024/06/06 04:20
http://java.dzone.com/articles/how-enable-usb-debugging-nexus
Introduction
One of the required tools that you will need when building Android Apps is the ability to debug on a local device. While plugging in the device via USB gives you access to the files stored on the device, it does not enable your app to be deployed on it. Let’s see what is required to deploy and test your Android app on a local device. In this case, we will be working with the Nexus 5.
Starting with the SDK Manager
You will need to begin by going to the SDK Manager. Since we have been using Android Studio so far, it is just as easy to navigate to it through the IDE by going to Tools->Android->SDK Manager.
This will open the following dialog prompt and from here you will need to scroll down to the very bottom and look for “Google USB Driver” as shown below.
Note: If you are not using a “Google” based phone, you can get the required drivers usually through the manufactures site. (ex. Samsung)
Make sure you place a checkmark in “Google USB Driver” and hit the install packages button.
Installing the Drivers
From the screenshot, you can tell that it places the files in the “C:\Program Files (x86)\Android\android-studio\sdk\extras\google\usb_driver” folder. But that is all that it does, it does not install them.
If you navigate to that folder, you will need to right click on the android_winusb.inf file and install the drivers.
Hit “Install” on this prompt and you are done for the Windows side.
Getting Your Device Set Up
After the drivers are successfully installed on your PC, you will need to enable the “Developer Mode” on your Nexus 5. Since you are running KitKat, you can do this by going to Settings -> About Phone -> Build number (Tap the build number 7 times.)
If done successfully, you will now see the “Developer options” at the bottom of the settings menu.
Tap on “Developer options” and place a checkmark in “Stay Awake” and “USB Debugging”.
Now connect your device to your USB port on your computer and you should get the following screen:
Place a checkmark in the “Always allow from this computer” and hit “OK”. You are now free to open Android Studio and run your app on your local device!
Wrap-Up
Thanks for reading and if you are interested in learning how to setup your Android Studio Development Environment, then just click here.
- How to Enable USB-Debugging with Nexus 5 for Android Studio
- How to Enable USB Debugging Mode on Android
- How to enter deep idle with USB plugged in (Used For Debugging)
- (OK) Use Android Code to Enable USB Debugging
- Xamarin.android + VS - notes how to enable debug with device
- How to use GitHub with Android Studio
- How to use GitHub with Android Studio
- enable usb debugging by code
- How to enable USB selective suspend and system wake in the UMDF driver for a USB device
- [Android] How to use github with android studio
- Android 4.0 How to enable Bluetooth PANU
- How to enable Android ConfigFS gadgets
- How To Enable Android's Developer Options
- How to enable Android ConfigFS gadgets
- Android 如何在自定义界面上启用输入法 (How to enable inputmethod for the custom UI)
- Android 如何在自定义界面上启用输入法 (How to enable inputmethod for the custom UI)
- Android 如何在自定义界面上启用输入法 (How to enable inputmethod for the custom UI)
- Android 如何在自定义界面上启用输入法 (How to enable inputmethod for the custom UI)
- LeetCode 94. Binary Tree Inorder Traversal
- LeetCode 95. Unique Binary Search Trees
- $_SERVER的详细参数
- 创业想法
- 使用 GDB 调试多进程程序
- How to Enable USB-Debugging with Nexus 5 for Android Studio
- poj 2352 Stars 线段树
- 易学设计模式看书笔记(6) - 创建者模式
- 【足迹C++primer】55、容器和继承
- [ACM] POJ 3270 Cow Sorting (置换,贪心)
- Jquery滑动门实现
- 找工作笔试面试那些事儿(8)---常问的CC++基础题
- cocos2d-x UI之技能冷却按钮
- UVa11459 - Snakes and Ladders(飞行棋类的游戏)