I have recently installed android studio in my PC(Windows 8) and I have tried connecting my phone to test an app. But it is not displaying the phone in the device selector. The PC is detecting the phone and the USB debugging is turned on. Even eclipse is detecting the device. Android studio version 0.8.2. I have tried connecting the phone in a friends laptop(Windows 7) and same issue. It is showing in eclipse but not in android studio.
i think adb.exe is responsible for choosing device and for debugging. so pls check if adb exists in sdk path. if your eclipse android sdk path is working , pls set same sdk path for android studio too. it may help you. adb link.
You try this:
To restart adb:
power off your phone
connect the USB cable
On your phone
Run adb devices
You should see the attached device now
Related
I am using Visual Studio 2022 to create a Xamarin.Forms application based on Android. Now I have the problem that my connected Android device is not recognized in Visual Studio. Running "adb devices" shows the connected device. When running Android Studio I can also see the device listed - only in Visual Studio it is not shown in the list. In addition, also the Windows Device manager shows the the device in the portable devices category.
I have enabled USB Debugging on the device
I tried different cables
Reset the USB authorization for the connected PC
Any idea what's wrong here?
Search for Visual Studio Installer from your Start menu.
Select more->repair. Use this operation to try to repair.
You can also try other Android devices to check, if it still doesn't work, please check your Android SDK.
I'm new to Android Studio and at the moment i'm trying to run my Android Studio apps on my device (HUAWEI P20 PRO) but nothing works for me. Android Studio doesn't show my device in AVD manager.
Can you tell me what I've missed?
USB debugging is on
Driver is installed with HiSuite (in device manager: Huawei HDB Interface)
Note: Google USB Driver is installed through Android Studio.
Using Android Studio 3.5
Solved:
What worked for me was to make sure that I clicked "Transfer files" on the phone when it was plugged in to the PC. Then I toggled OFF USB debugging and then ON again.
Suddenly, my device showed up as an option in "Available devices" in Android Studios.
In addition to the solution in the chosen answer I had to restart android studios for my device to appear in available devices.
I have a Android Pixel C that has an android version 7.1.1.
I'm using MAC OS X, I have followed all the instructions, i.e. allow usb debugging/ non market apks etc, however the device is showing up "unknown target" in eclipse. See Screenshot below.
Here is some key point which need to be notice.
I'm able to install .apk file from terminal.
I'm able to transfer data from MAC to device and vice versa.
I checked USB info in system information.
Android Studio is recognizing the target and device is perfectly working with the same.
Restarting adb with this shell command and rebooting phone and MAC did not worked for me.
How can I get Eclipse to recognize the target ? Does anyone know how to fix this?
this link will help you
Custom ADT (Eclipse ADB)
https://github.com/khaledev/ADT/releases
or
if do you want only show logcat
https://stackoverflow.com/a/39632018/4359490
install your usb driver manually . Device manager> click on usb > Select action and >add legacy hardware > in select your driver zip file and install it.
I activated Developer Options" and checked "USB debugging". Google usb driver on sdk is already installed.
But still Android studio doesn't recognize my mobile (one plus two).
Means it is not shown in "Choose Device" window when I try to run my application
I tested my mobile on ubuntu and it works.
I am using windows 10
But it doesn't recognize one plus two
I tried following Android Studio Doesn't recognize my device- one plus one
but it did not help me.
Do you have any suggestion?
When you connect your OnePlus 2 to your Windows 10 machine, try changing the USB PC Connection settings on your phone. It may sound odd but selecting to connect as Camera (PTP) worked for me (although I don't have a OP2).
When you insert your usb, does your android phone notify you that it's connected via usb connection?
On Android Studio(2.2.3), the device somehow is not detected for me. The following worked for me.
Go to Tools
Click on Android
Disable ADB Integration
And Re-Enable ADB Integration
PS: However before updating Android Studio, never observed this issue, even with the same set of USB Drivers.
I'm running windows 8.1 and having a Google Nexus S as Android device.
Debug mode is enabled and I can add/delete files on the device so windows recognizes the device. When I want to compile and run my Android program eclipse says "No compatible targets found."
Can someone help me? I also did a factory reset and rebooted my pc.
Factory reset generally means, that USB debugging is turned off again. Turn that on and check once again.
You need to plug in the device then go the device manager in windows. Uninstall the driver of the google phone. Then install it again but point to the Android SDK delivered drivers. Thats it.