How can i run my android application on nexus 5 mobile phone - android-studio

Android Studio 2.1.2,
Android 6.0 API Level 23,
Mobile Google Nexus 5,
I am trying to debug my application on my mobile phone instead on the emulator. Adb didn't show my nexus 5 in the connected device. Adb says USB device not found.
Although windows explorer shows device is connected.And I have also enabled USB debugging and developer option mode on the nexus 5 mobile.
How can i run my android application on nexus 5 mobile phone.
Please help

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.
Search for “Google USB Driver”
Then make sure you place a checkmark in “Google USB Driver” and hit the install packages button.
For 32 bit user go to:
C:\Program Files (x86)\Android\android-studio\sdk\extras\google\usb_driver”
And for 64 bit user go to:
C:\Program Files\Android\android-studio\sdk\extras\google\usb_driver”
Click on android_'winusb.inf' and install it.
After the installation go to your device.
In setting 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.
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!

u can download this driver via this link http://adbdriver.com/upload/adbdriver.zip
and Enable Developer Options
and Enable "USB Debugging"

Download ADB Driver Installer from http://adbdriver.com/downloads/ and open it.
Connect your device to your USB port on your computer.
When your device appears in the ADB Driver Installer, select it and hit install button.
Now you have successfully installed the driver and your mobile will be connected.

Related

How do I deploy apps to an Android phone using Android Studio on a Chromebook?

I'm using Android Studio on a Dell Chromebook. I've confirmed that the adb daemon is running, but when I plug in my Android phone (Samsung Galaxy S10e) it is not recognized by adb. Instead, I get a Chrome OS notification saying "USB device detected" and giving me the option to "Connect to Linux" but when I click that button nothing happens. On my phone I get a dialog saying "Allow access to your data" but when I click allow it just opens a file browser on the Chromebook.
When I plug this same phone into my Windows laptop and iMac, I get a different dialog on my phone saying "Allow USB debugging" and then I am able to run apps from Android Studio on the device. So it seems like the problem is with my Chromebook, but I can't find any documentation for my problem. According to this page there should be no additional configuration required on Chrome OS:
https://developer.android.com/studio/run/device?utm_source=android-studio#resolve-usb-issues
Has anyone else experienced this problem? Is anyone able to connect to their Android phone from their Chromebook?
Go to your device's setting, the about this phone, software information then click 7 times, VERY FAST, on the build model. It will create a new folder named "Developer options" on the bottom of the page. Go there and click depuration through USB.
This should work.
Try this link for more information https://android.gadgethacks.com/how-to/activate-developer-options-your-galaxy-s10-0194524/

updated android-studio to 3.1.3;how to run application on phone in new version;Please select android sdk

under general tab there is module.which is selected to app.under Installation options there is Deploy which is selected to default APK. There is Install flags which is empty. there is Launch options. Under that Launch is selected to default activity.Then there is Launch flags which is empty.Then there is deployment target options which is selected to Target:USB device.
How do I run my app on mobile phone
earlier the phone icon was displayed on studio and I had to click the icon. Now in 3.1.3 it is different
Make sure your android phone is connected to the laptop using USB Cable.
Also, make sure usb debugging is on.
Then, when you run the app module, it will run the adb and show you the list of virtual devices you created and the usb connected mobile phone.
Select the mobile phone from the list of options and press ok.
Gradle build will run and then it will install the apk on that connected mobile phone.
If it doesnt install, check the errors under the run console.
I clicked sync gradle button, it did some downloads. Now it is ok

Android studio not detecting my phone even usb driver installed in studio

I am not able to detect my phone in the android studio.
My system is detecting my phone but it is not showing on android studio only.
I have installed USB driver on my system and also turned on the developer option on my phone.
I am using Lenovo A7000-a model phone and windows 7 operating system.
Can anyone help me out??
You should have to open phone into developer mode.
steps for developer mode:
1. go to setting
2. go to about phone
3.click on phone version at 7 time then you will get developer mode on.
After this process you should have to use phone in testing for android studio.
And install the device driver in you system also.

How can I connect my Sony Xperia C4 E5333 to Android Studio?

I want to connect my Sony Xperia C4 E5333 to Android Studio for debugging my app, but Android Studio does not show my phone in ADB window.
I tried to install the USB driver for my phone but I can not find an USB driver for the E5333 model. In ADB, I have the Google USB driver installed. I installed Sony PC Companion 2.1, but when it tried updating, I got an error.
How can I connect my phone to Android Studio?
You need to install Sony driver for your phone, not Google USB Driver.
This one should do it: http://developer.sonymobile.com/downloads/drivers/xperia-c4-driver/
Also, you need to get to developer options and enable USB debugging. After that you are good to go.
Get the latest Google Usb Driver from SDK MANAGER > EXTRA
Open Device manager.
in Other Devices find your phone with a ? mark beside it
Right click on it and choose Update Driver. You would see this screen,
Choose Browse My Computer For Driver Software. You would see this screen,
Choose Let me pick from a list of device drivers from my computer. You would see this screen,
Choose Android Device and click Next. You would see this screen,
Choose Android Adb Interface and then click on Have Disk. You would see this screen,
Browse to where you installed your Sdk, SDK_PATH > extras > google > usb_driver
Click ok then next and your device installed !
if you still don't see your device type these commands in your cmd
adb kill-server
adb start-server

Android Studio doesnt recognize my device - Nexus 6P [duplicate]

This question already has answers here:
Cannot see Nexus 6P for debugging
(5 answers)
Closed 4 years ago.
I am struggling to figure out the problem with my device not being recognized in Android Studio. However I do see it from file explorer and can browse the device files.
OS: Windows 10
Device: Nexus 6P
Yes, I did some research before posting this question, so I'll enumerate what I tried:
Enabled USB Debugging
Installed Google USB drivers from the SDK manager
Intalled HiSuite(apparently including some device drivers)
Switching between MTP/PTP
Restarting Android Studio several times
Restarting my computer several times
Every USB 2/3 ports of my computer
Tried updating drivers from device manager(however it did not suggest anything)
adb kill-server / start-server
Any suggestions would be greatly welcome!
Thanks in advance!
Apparently, installing 'Google USB Drivers' from the SDK Manager doesn't actually install them!
You have to go to:
'C:\Users\your_user\AppData\Local\Android\sdk\extras\google\usb_driver\'
right-click on 'android_winusb.inf' and install.
Try to use ADB over Network but it depends what Android version you have.
In Developer options you should see ADB over network section if not then sorry for this unhelpful advice.
check for SDK platforms in Android Studio whether you have installed the Android 6.x(N), Because Nexus got Android N updates, so it may be one of the issue you faced...
When I had this problem what I did was install the drivers manually. What you do is download the drivers from the google website NOT with Android Studio then you go into device manager and right click on your nexus. Then go to drivers tab and hit the update then manually find drivers on computer. Navigate to the downloaded drivers and click on them. Device manager will install your drivers and should fix the problem. Also for drivers you may want to try this or this driver Also please post these kinds of questions on the Android Stack Exchange Thanks!
If you have already tried all those steps , i would like you to install pdaNet software . This will automatically detect and repair the driver and you can find device in Android Studio.
This has worked for me
SO references :
Android studio doesn't list my phone under "Choose Device"
eclipse or android studio not recognize my phone on usb debugging mode
References for installing the drivers and enabling USB debugging is available here for reference , you could cross check with as well.
Reference 2 : Installing pdaNet
First of all I make sure that I've installed google's usb_driver. Either through the SDK or what SlashJ said:
Apparently, installing 'Google USB Drivers' from the SDK Manager doesn't actually install them!
You have to go to:
'C:\Users\your_user\AppData\Local\Android\sdk\extras\google\usb_driver\'
right-click on 'android_winusb.inf' and install.
- SlashJ
After that's done:
Insert your device into your PC
Open device management
Click start > run devmgmt.msc
Right click my PC > manage > devices in left panel
Check if there's a tab android device and look for your device or an ADB Interface, Otherwise just search for your device
Right click your device and Update Driver Software
Browse my computer for driver software
Let me pick from a list
Search for google or android in the left pane.
And select ADB Interface in the right.
Continue installation and it should work now.
You can try to unplug and re-plug your android device.
Maybe you also have to enable developer mode on the device.
Here's a walkthrough
I have a similar problem with my Wiko phone, I had installed the wrong usb driver and I could not do it manualy.
In developer mode, enable the usb debuging
Try to update your driver with apk installer for Windows 10 even if it is already installed:
APK DRIVER
This tool permits to install automaticaly the right driver.
Have a look to my previous question fo further details:
How can I run my ionic app on a physical device (Wiko phone) on Windows?
i just have that problem and anything works for me
what help me is to click a lot of time on the build number (setting-about phone-build number) and magic happens :)
Did you check in Android Studio Run tab->Edit Configurations->Target set to USB device.
if that doesn't work, try updating Android Studio, and/or device's firmware, also here is a similar question, involves a nexus and windows 10: https://stackoverflow.com/a/31938193/3817308
I hope this help.
I'm not sure how you installed adb driver. If your device is displayed in device manager but not as a ADB device, try these steps
Go to Control Panel and open Device Manager.
Find the device
Right click the device and select properties.
Select Driver tab, then click the Update Driver button.
Choose Browse my computer for driver software.
Let me pick from a list of device drivers on my computer
Browse for the .inf driver file. Open and Next.
Select ADB interface from device list (i can't remember the exact name)
Install
There's another another Stack post (Cannot see Nexus 6P for debugging) you might want to try.
You need to manually download the driver here (http://developer.android.com/sdk/win-usb.html)
Go to "Devices and Printers", right-click on "MTP", and choose properties.
Click "ADB interface", then click "Properties"
Go to "Driver" tab and update driver with the file you just downloaded. (Make sure you unzip them first)

Resources