Android Studio wont recognize Nexus 7 as device - android

I am having trouble running an app I am developing in Android Studio on my Nexus 7. I have successfully gotten this to work before using the same tablet and computer (running Windows 8), but since having my laptop repaired and everything wiped I'm convinced something with my dev environment is messed up.
When I go to run the project, there are no available devices, so it is not recognizing my Nexus 7 anymore.
Things I have tried
making sure my computer recognizes the device and that I have the Nexus 7 driver installed from ASUS
going to the SDK manager and ensuring I have the Google USB driver installed
closing Android Studio and re opening it, restarting my computer, restarting my Nexus 7
killing adb.exe from the task manager
ensuring I have USB debugging enabled and toggling that on and off
switching from MTP to PTP and back again (currently connected as MTP, not sure if that is correct)
Any help would be greatly appreciated. This is very frustrating and I would like to just get back to developing again.
Update- I just noticed that when I go to developer options, "Wait for debugger" (near where you toggle USB Debugging) is grayed out. I think this has something to do with it but I'm not sure how to enable it.

I got it!
This was at least the issue in my case, I hope maybe this will help someone someday, apparently I had not installed the adb driver properly:
Search for Device Manager from the search bar on the start screen
Open Device manager, click on your Android device
Select"Update Driver Software"
BOOM. Now Android Studio recognizes the device.
I know this may not be the solution for everyone, but its worth a shot if you are having trouble testing apps on your device.

Between upgrading my second-gen Nexus 7 to Android 5.0.x and Android Studio leaving beta I lost the ability to debug on my tablet.
To get this working again I used a combination of the above advice.
I grabbed a copy of the USB Driver from Asus, but updating the Device in Device Manager and pointing to the unzipped files wasn't enough.
The next step was to point Device Manager to the Android Studio sdk directory (on a 64-bit Windows 8 install that was C:\Program Files (x86)\Android\sdk - beta versions of Android Studio - or %localappdata%\Android\sdk - switched to in 1.x) and then things worked just fine again.

Another possible reason that you may not be able to connect is:
Don't forget to enable debugging mode in Android setting.

I have had the same problem, although just getting started with my Nexus 5 and windows 7. I installed google usb driver package using SDK manager first, computer recognized phone but studio could not find it. Went in to manually update driver for phone but update driver couldnt find it, downloaded driver separately and pointed it to directory path, driver installed then studio found it and ran fine.

Related

Android Studio 3.0.1 does not find device

After I updted Android Studio to 3.0.1 my device was not found anymore (it worked perfectly before).
What I already tryed:
switching usb port and cable (should not be the problem anyway since it worked before)
turn my phone to PTP and back
checking if google usb drivers are installed in sdk
I dont know how I can get it back to work and I dont know if it might be a bug of Android Studio becuase everything worked before.
My Device - OnePlus 3T
My OS on desktop - Windows 10
I hope somebody can help me here.
Thanks!
install Universal ADB Driver
and configure your device with this tool first and then your device will be found by android studio

Android Studio: Running application in emulator not working

Today I downloaded Android Studio for my Debian Testing system. I wanted to run a HelloWorld application but weren't able to run it. With adb I can install it without having any problems.
However, if I try to do it with Android Studio, it gets stuck on 'Installing APKs'. The same happens when I try to start it in an emulator (gets stuck on 'Waiting for target device to come online').
My device is a Samsung Galaxy S3 with LineageOS (Android 7.1.2) and root permissions. Android Studio recognizes my phone properly.
What I've already done:
installed openjdk
set android_home
installed all the SDK-platforms since Android 4.3 and Android Emulator from SDK tools
enabled USB-debugging
tried with MTP and PTP
tried another emulated phone
installed lib32stdc++6
restarted my computer
and probably much more
I tried to do it the whole evening and couldn't find a solution. Is there something Debian-specific because I can only find instructions for Ubuntu? I have never experienced anything close to this on other systems.
Thank you in advance.
EDIT: I am now able to use my phone to run the android application by using USB 2.0 instead of USB 3.0! Is that a normal behavior since it works with native adb? I mean, if I buy a new PC after some years which has got only USB 3.0 ports, will I not be able to use phone debugging with Android Studio or is this just an issue? It is still known since 2014 (https://stackoverflow.com/a/9548311/8292104).
However, I still cannot get the app running on an AVD. I changed graphics to software, now it shows the phone but the screen remains black and the phone won't start. What can I do to fix it?
Try to completely delete and install Android Studio again, I think that it will solve the problem
Another possible solution that worked for me is to, in the application, go to
app - build - intermediates - split-apk - debug - slices
and then delete all of the contents within this folder. Then again, this only worked for me, so I would duplicate the document in case of corruption.

No USB devices or running emulator detected

I am very new to Android development. I am trying to create and run an app from tutorial - https://developer.android.com/training/basics/firstapp/creating-project.html
But while running app it is showing me "No USB devices or running emulator detected" in Select deployment target dialog.
Background and what I tried:
I am using Lenovo K4 note Vibe.
Android version 5.1
I have enabled USB Debugging from my phone also checked "Enable OEM unlock"
I have selected USB "MTP" as connection mode when I connected my phone to machine.
I am using windows 7 and Android studio version 2.3.2
My device appears in "Device Manager" of my system i.e. It is installed properly.
When I connect my phone to my system it shows AutoPlay dialog, asking to run "Run Lenovo_suite.exe", I tried to see if my deice appears in Studio when I allow to run that app, but still no luck
I also tried by checking and unchecking "Enable ADB Integration" from Android studio, still no luck
I have already installed Android SDK for verion 5.1
I have also tried installing "Google USB driver".
I also tried connecting my device to all of my machine port
I am tried using Emulator, but it is really very slow on my machine, it takes around 2-3 hours just to boot. So, I am using my phone.
Your assistance in this matter is greatly appreciated
this problem just happen when your USB connection mode is not work in debug mode, Like:
File Transfer Or MIDI device
The Charging Only is Work in android 5 and above
GoodLuck
a addition to above answer i think if you try to debug it , you will get better result since android if had problem throw a error that says restart adb.exe ,
another thing whats your hardware config ?
and have you tried genymotion , i prefer it over android virtual device , working with a real device is better , but i prefer when to concentrate on monitor have device on it ;)
As per My experience many device not connect
So you need to try this Windows Software to detected your android phone
Install it on your windows system PDANET+
Thanks for your support guys. After 2 hours of struggle I found below:
When I connect my device to the machine, it shows me a AutoRun dialog to Run Lenovo_suite.exe(Which I mentioned in my question), but instead of auto running, I explored that newly created lenovo drive, which had 2-3 setup exe's(usb drivers and magicPlus), I installed both and restarted my machine. When I run MagicPlus software, it helped me to Authorize USB debugging with some kind of fingerprints. And now my device appeared in studio.

Visual Studio doesn't let me debug on android physical device

I'm developing an android app with Xamarin and Visual Studio 2013. I have connected my android applet to the computer. Sansung Kies recognizes the device. Adb recognizes it also because when I type "adb devices" the device appears in the list. But when I debug the app Visual Studio doesn't let me choose my device, it only proposes to me to use the android virtual emulator. In my device the "USB debug" option is enabled. So what am I doing wrong?
EDIT
Just got a new machine and ran into the same problem.
Following these steps:
http://visualgdb.com/KB/usbdebug-manual/
as suggested by Veverke in the comment below fixed the issue for me.
just had the same issue and fixed it with a combination of these two links. Obviously our issue isn't the exact same issue that's listed in the first link but that's why I had to use both to kind of synthesize a solution.
https://web.archive.org/web/20140410204811/http://krumelur.me/2014/01/30/xamarins-visual-studio-plugin-missing-android-devices-genymotion-and-parallels-desktop-dont-panic/
http://developer.android.com/tools/extras/oem-usb.html
Basically, in Visual Studio 2013 start the Android SDK Manager. Scroll all the way down to the 'Extras' folder, where you will find the 'Google USB Driver'. Mine was already installed, so I deleted the package, confirmed I wanted it deleted, then reinstalled it.
Then, I opened Windows Explorer and right clicked 'Computer', then clicked 'Manage' (need Admin priviledges). In the newly opened Computer Management window I clicked 'Device Manager' under Computer Management > System Tools in the hierarchy on the left.
In the main window, I expanded 'Other Devices' and saw the device I was looking for. I right-clicked it and chose 'Update Driver Software', then 'Browse my computer for driver software'.
Now you need to hit Browse... and find where you installed the packages.. for myself it was under
C:\Users\zumberge\AppData\Local\Android\android-sdk\extras\google\usb_driver.
Click next, the you need to choose to accept Google, Inc. as a trusted source.
Then the process should be finished and you'll be good to go.
Don't know if you need to restart VS2013, but I did for good measure.
Hope this helps and it's not too late.
For VS 2015, LG Nexus 4 and Windows 7, following solution works for me.
Debugging On and Off during the running instance of Visual Studio, your physical device appears in the device list.
Restart of Visual Studio 2013 has resolved the issue for me.
Details:
Visual Studio was open while I was trying to make the device visible to the system.
After installing the device driver, I have restarted the "adb" and saw that the device is added to the list "adb devices".
However the name of the device at the Visual Studio was not changed, some numbers.
After restarting the Visual Studio, real name of the device is shown "NVIDIA Shield Android TV.."
Then I did not get this error anymore.
I just ran adb command prompt and hit 'adb devices' and it showed daemon was not running. It installed itself and now i can able to see android devices there.
C:\...\...\source\repos\ABC\ABC\Ex.Android>adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
ZF22Q3T unauthorized
After enabling debug mode on my android device, I found I had to change the 'USB PC Connection' option. It was set to 'Charge Device'. When I switched it to 'Media Sync (MTP)' and reconnected to my PC it then showed up in Device Manager, but the drivers did not appear to be working with VS. I reinstalled the 'Google USB Driver' in SDK Manager. I removed my device in Device Manager and added it back using the Google USB Driver. When I disconnected/reconnected the device to my PC, Windows asked what I'd like to do with the device. I realized the first time it had asked me, I quickly clicked 'Do Nothing'. This time I noticed the first option was to run an exe on the device to install the driver. After the install completed I disconnected/reconnected the device and the device prompted me to allow my PC to debug. After selecting 'Allow', the device showed up in VS while VS was already open.
Also make sure you have the correct configuration selected for your device. (eg. ARM for most smartphones)
If its set to one that your device doesn't support, then the device won't show up even if adb can see it. Simply switching the configuration solved the problem for me.
Try restarting adb server using:
select "Tools" from top bar then
select "Android". In the list there will be an option to restart adb server as "Restart Adb Server".
After clicking it everything works fine.
It worked for me.
I followed most of the steps mentioned, but still couldn't get it to work. Some things I did were:
download and install google driver from android sdk manager
locate the device in windows device manager and update driver (pointed to the google usb driver)
switch usb connection from mtp to ptp
restarted visual studio
restarted computer
Finally, what worked for me was googling the drivers for my particular android device (lg g4) and landing on this site . Once I installed the drivers I was immediately able to debug in visual studio using my device. it works whether the usb connection is mtp or ptp.
http://www.andromods.com
In case you are using Samsung and have MyKnox installed, you cannot enable USB-Debugging until you uninstall MyKnox as stated in This Link

Android SDK and AVD Manager issue

I am trying to follow the procedure Downloading the Google USB Driver but see the following error in Android SDK and AVD Manager:
Some packages were found but are not
compatible updates.
I am unable to Download the Google USB Driver without the Google Add-ons.
Specifically, I need Google Usb Driver package revision 4 for the Nexus S.
I ran Eclipse > Help > Check for updates but this did not resolve the issue.
Does the Android SDK and AVD Manager need to be updated another way? If so, how?
Is there some other way to fix this?
Does Google Usb Driver package revision 4 work in Windows XP?
That is ok. Those are shown so since they are probably not meant for your version of adt. When you update your android development tools again and check for updates you will be updated to the latest and then you may update to the tools for the latest version. You may still have that alert message since there will also be updates that are not compatible with your your version of adt.
I guess you need to download your latest version (zip file )of adt then install this new .zip file in eclipse.
Then you would be getting the enabled option to download Google USB driver for nexus S.
Which version of the JRE are you running? I had this problem, updated Java, fixed it immediately. I think I was running OpenJava 1.5, upgraded to 1.6 and it worked.
Have you tried running the sdk manager in admin mode, has seemed to help me in the past with strange errors
After completely uninstalling and re-installing the SDK I was able to see and install the Google USB driver but still have been unable to connect the debugger. Perhaps Android development on an Atom based XP Net-Book is a bad idea. I've not been able to get the emulator working so I thought it might be better debugging directly on the target. The emulator just locks up this PC. I've waited up to 40 minutes before giving up. I've had no trouble with Android development on my work PC (emulator or target) but I have some personal projects I'd rather not do on company equipment. Oh well, I probably just need a real PC if I want to work at home.
Issue - I had a working Android Studio and USB driver would allow me to connect to my Huawei Honor 6X mobile device. One day the Android Studio stopped detecting the mobile device and reinstalling Huawei drivers, uninstalling and reinstalling drivers did not work. I tried changing cables and it did not work either. My Windows 8 would not detect the phone when I connected it with USB and Studio did not detect the device either.
Various solutions posted at the forums did not work for me. Finally this is what I did to solve the issue. My LG mobile also works with the Android Studio and I believe this solution will work for all mobile devices and not just Huawei device
Solution -
1) Open Tools> Android > SDK Manager > SDK Tools tab
2) Select Show package details check box
3) Is Google USB Driver selected? Select it if it is not selected, apply & Ok.
3) If Google USB Driver is selected, unselect it and SDK manager will remove the USB drivers.
4) Close Android Studio and follow the above theps and select the Google USB Driver and let studio update the driver
5)Close Android Studio Again
6) Go to Device Manager and you should see 'Android Composite ADB Interface' if the driver is successfully installed
7) That is it, now open Android Studio & when you run the application you should see your mobile device under Connected Devices

Categories

Resources