android studio doesn't see USB connected device - android

Just to be clear, the device isn't locked or anything and it works perfectly for my friend who has the same android studio version. The problem isn't with detecting the usb device (by the computer), I can access the device's content just perfectly so it connects correctly to my computer but not to android studio.
When I try to run an application, the usb device doesn't show amongst the options.
Can someone please help me with this issue, knowing that my android studio is updated.
UPDATE:
the devices I used are: Samsung J2 and J3

Have you installed Universal USB Driver, if no then you will not see any device to connect. you can also install individual company device driver.
just try Universal USB Driver to connect all devices
Download from here Universal USB Driver

Open the Device Manager window from the control panel in your computer. In the Others/Unknown Devices tab you would see an unknown android device. Right click on it and update the driver and re-run android studio.

Make sure usb debugging is on in your device.
In Android Studio
Tools->Android->Enable ADB Integration
Enable ADB Integration
Then run app
Hope it will solve the problem

Enable your ADB in your Android
-> First go to Settings->Developer Options
-> Then On or Enable your ADB Mode

Just a Restart of Android Studio worked for me.
In my case it happened because of non-interaction in Android_Studio for long.
Else, Check with Run -> Edit Configurations -> Target.

I have the same problem and I use Samsung too.
I fixed it by installing the device driver from Samsung which you can download from Samsung's website
Note
You need to enable ADB mode(Like the second comment)
You need to set Target in Android Studio to > Open Select Deployment Target Dialog
to set Target : Run > Edit
Configurations > Targets > Open Select Deployment Target Dialog

Related

Android device not detected

MY android device VIVO Y15 is not detected in android studio.
here is what i have tried
Enable developer option and usb debugging
updated the driver to google usb driver
Although in device manager list under android device section an Android adb interface appears , but in the list of troubleshoot it shows:
Android ADB interface not recognised as android device
i think you must, uninstall adb,
and try do this
right click
update driver
Browse my computer for driver software
Let Me Pick.....
and search MTP USB Device
if device manager showing like this, I hope to help you
If nothing works you can give this a try : https://adb.clockworkmod.com/ This supports a lot of Android OEMs.
Please check if you have this tab open in your chrome to debug your webviews.
chrome://inspect/#devices
Closing this tab helped my Android Studio to detect my device.

Android Studio is not detecting Nexus 7

I am using Android Studio 1.1.0 under Windows 8.1 Pro and trying to connect my Nexus 7 running Android version 5.1.
I am following both Lynda tutorial and looking at android developers tutorials but was not able to find what's wrong.
The device is visible in the Device Manager:
The Google USB driver has been installed:
I have enabled a lot of Developer options of my Nexus 7 including:
USB debugging
Stay awake
Bug report shortcut
I am not seeing the details when I try either to run or debug the application. The device is not listed here (as shown in the video):
I have try to:
add android:debuggable="true" in AndroidManifest.xml
restart the PC
reconnect the device
I was not able to find Unknown sources option in the Developer options which was recommended in some other answers of this issue.
Could you advice what to try?
Click Revoke USB debugging authorization in Developer option and try it again.
Go to Settings -> Usb Connectivity -> Usb connection mode -> Check MTP mode.
And try sudo adb devices.
I suggest re-installing your ADB Drive in the Android SDK file and making sure your device is in Debugging mode.
I have decided to change my OS and install Ubuntu 15.04 instead. After I installed the Android Studio what I needed to do was to simply connect my Nexus 7 with my computer - the studio detected it immediately - no additional drivers and settings were needed at all.
Go to developer settings and change USB-mode to Charging.
Solution for Android M.

Android Studio doesn't recognize my device

Here is the problem. I want to run my Android Studio apps on my device (Samsung Galaxy Ace 2). But nothing works for me. Tell me what I've missed:
1) USB debugging is on
2) ADB driver is installed (in device manager i can see Android Composite ADB Interface)
3) ADB device list is still clear, even if i reset server(adb kill-server, adb start-server, adb devices - list of devices is clear)
4) in google usb driver directory, in android_winusb.inf file I added my device identificators
5) Android device manager still cannot connect to my device, showing this error when I reset it: "adb connection error an existing connection was forcibly closed by the remote host"
So I will be glad to hear any advices. Hope you'll help me
Did you try to configure the "Media Mode" in "Camera (PTP)" instead of "Media device (MTP)"? This is sometimes solving the issue. Its in the USB Computer Connection options of your Android device, you should see an "authorize" dialog then.
Update 04/2017: looks like it has been fixed in Android 7.1.2
I have done numerous ways of handling that issue. Finally it has worked! I am using LG Optimus II, but I believe the following steps are generic to other Android devices as well.
Step 1:
Make sure your device is enabled for development. If yes, go to Step 2, otherwise go to Settings > About phone and tap Build number seven times which is magic number :-).
Now Developer Options is available in the Settings.
Step 2:
Before you plug your device to PC, Go to Settings > Developer Options and select USB Connection method.
Step 3:
Plug the phone to the PC, you are given options for the USB Connection method, and please select Internet connection. Make sure you have connected to the Internet. By the way, I have changed MTP to PTP, it did not work for me. Therefore, I tried Internet connection mode, then it worked.
Step 4:
Run the app in the Android Studio, it will ask you to authorize the device for development, and select YES!.
Step 5:
Run the application via Android Studio and choose the device, not emulator, and BINGO! Welcome to Android development board.
Try swapping the USB port the cable is plugged into.
Sounds crazy but after 20 minutes of debugging this worked for me.
I also tried above solutions but got no luck. So here's what I did:
Download and install PdaNet+ to fix connection issues between my computer and android device
Enable USB debugging on my android device
Unplug the phone and plug it again after it's installed
Run my app and voila! My android device is now recognized by Android Studio
Although my computer could recognise my phone, I had to install the official drivers from the Samsung developer site to get adb/Android Studio to recognise it:
Samsung Android USB Driver for Windows
Click Revoke USB debugging authorization in Developer option and try it again.
Solution for those working with Huawei phones - You will get this error when ADB interface is not installed. Check if you have installed Huawei HiSuite. USB driver gets installed when you install HiSuite (I suppose this is true for most of the new phones that come with a Sync Software). If the ADB interface is installed on your computer you should see 'Android Composite ADB Interface' under Android Phone in your Device Manager as shown in this picture.
If you have Mi Device than you need to enable this two option after enabling Developer Mode.
USB Debugging (Enable = True)
Install via USB (Enable = True)
See this screenshot.
LG Optimus Zone 2 pp415 d\n connect in mtp, but does work in internet connection mode. Lost lots of time messing with it. There's no doc for this, but I'd suggest trying all 4 of the connection options. Only 1 that works for me is Internet Connection->Ethernet, then win 8 auto-detects a driver and installs it. In MTP mode despite all drivers being registered with device manager, adb doesn't pick it up.
I had the same problem. So here is what i did
reinstalled the device driver
changed the USB computer connection from MTP to Mass storage(UMS)
And it worked.
For me, I tried the above. Turns out my USB cable was bad. I changed the cable and then it worked.
I am sorry that i bothered you all. The problem was my device is cloned in different places in device manager. It was gone when I tried to update driver for my phone in "Other devices" list, and before i have been updating it in wrong sections. Thank you all.
In my case it was due to already running and hanged adb.exe on another user under my PC. I had two users on my PC, the second user had the adb.exe process hanged even when I tried to end the process. It worked with me after (End Process Tree) from the Task Manager.
Hope this will help someone with multiple users :)
Ahmad
In addition to the above configurations, I had to set deployment target to "Open Select Deployment Target Dialog", run once (choosing my device from the options listed), and from then on Android Studio was able to see my device even after changing the deployment setting back to "USB Device". My SWAG is that since Android Studio uses its own internal cache to find your device, it has to be initialized first.
I was on Samsung S8 and had same problem too. After I installed Samsung Kies, issues was resolved for me, as I believe it had updated the correct driver required for my Samsung S8.
On Windows 7 , the only thing that worked for me is this. Go to Device Manager -> Under Android Phone -> Right Click and select 'enable'
i had to install android studio in 2 machines and ive solved this problem intalling samnsung kies, i use 3 diferents samnsung devices (plus some other of my family and friends) and i dont have to strugle with the drivers, it works for me and i recomend it. hope it helps
For me, this ended up being because I had the wrong SDK level installed (new version of Android Studio installed the SDK for Android 10, whereas I have a device that runs only Android 8.1). While Android Studio would "recognize" the device and display a string in the "devices" menu instead of just saying that no device was connected, installing the right SDK level for my device ended up changing the string to something recognizable (my device's model name) and allowed me to actually run my app over ADB.
I had a big problem with my Samsung S10 Plus as it was not detecded by Android Studio on my Macbook even if I did all what is required to be detected, that is to say:
Enable developer mode (7 taps on Build version in Android settings)
Enable USB debugging
What I did is to start "Android File Transfer" on my Macbook and the magic happened. A popup appeared on my device asking if I want to authorize an USB access to it. I clicked "Yes, always" and now Android Studio can detect my device on my Mac :)
Change the connection method Build-In CD ROM it works for me
On HTC mini one 2, besides enabling the Developer Options, the following worked for me:
Go to More in Wireless & Networks
Mobile Network Sharing
In USB network setting
Select Internet pass-through

How to debug android app using moto g device in windows

please help me how to debug my android application in moto g dvice in windows platform.In my app am getting problem in running service in background.
Go to the settings of your device and check for Development Tools or Developer Options.If its not available then go to About Device there tap 7 times on Build Number you will see Developer Options in your Settings Menu.Click on it and enable Debugging option.
In your Eclipse,right click on the your project,select Run as>>Run Configurations>>Target>>select Always prompt Device.
Now Whenever you will run your application it will show options,select your device.
Hope it helps you .All the best :)
In addition to the above solution you need to do this to:
The Android development guide (http://developer.android.com/tools/device.html) says that USB drivers are required for debugging on a device connected by USB.
You can install the USB driver by going to https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481/action/auth
After installing the driver you can see the device in the Devices section of your IDE.
We can debug android application by following below steps
Enable USB debugging in developer options(if you are not able to see developer option then go to settings -> About Phone and press more than 5 times on build number then developer option will be enabled)
Install ADT plugin in eclipse
Connect your phone via USB cable
In eclipse change to DDMS perpective mode and there you can see Logcat panel and where we can live phone logging

why eclipse can not detect android device?

Eclipse can't detect my android device but it can run with the emulator. i have no problem with the android device setting since it work well in my old laptop.
any idea?
When you start the Device sometimes adb doesn't recognize it because it has already started. So, in that case you just need to reset adb from DDMS->Devices
Go to android-sdk/platform-tools/ via command promt...
write command.. adb devices (It will show the list of attached devices)
If its not display device number then look at the drivers of device on your system. And if display then just restart eclipse..
Check that the android:minSdkVersion is lower or equal to the Version running on the phone. If it is higher it wont show on "Android Device Chooser"
Also, after installing the usb drivers you may need to set your Android device to developer mode and enable USB debugging on your device before it will be seen by adb or eclipse. From http://developer.android.com/tools/device.html
2.Enable USB debugging on your device. ◦On most devices running Android 3.2 or older, you can find the option under Settings > Applications > Development.
On Android 4.0 and newer, it's in Settings > Developer options.
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.
In my case, i ran adb-devices and it did show my device and it was unauthorized on the PC I was using.
I went to developer tools and disabled and then enabled USB debugging. It then prompted me for authorization for that computer, and then it worked fine.
Hope this helps someone.
Try connecting using the command prompt ./adb connect 192.168.xxx.xxx:5555
If you are running Linux you will have to add your device to the /etc/udev/rules.d/51-android.rules file.
Have a look here: http://developer.android.com/tools/device.html . Its a document on using hardware devices.
haven't you enable 'debug mode' in your Android device?
If not, then please enable it first. Then follow the steps in this article.
This example use Lenovo P770 as a device.
http://www.mywordismyopinion.com/2014/02/experience-using-smartphone-lenovo-p770.html
-hope this is helpful, :).
just install any driver are any compatibility software provided by your device provider like Samsung provide kies,Htc provide Sync etc..
Either check check your sysytem or antivirus not block it.

Categories

Resources