The Wayback Machine - https://web.archive.org/web/20240712023405/https://www.geeksforgeeks.org/how-to-fix-android-studio-doesnt-see-device-in-android-studio/
Open In App

How to fix “Android Studio doesn’t see device” in Android Studio?

Last Updated : 28 Dec, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

In Android Studio, sometimes the list of devices and emulators doesn’t list your physical device when you try to plug it in. Or you may have faced a situation when you plugged the phone in for the first time, no dialog appeared asking if you trust the computer. But the laptop is already allowed to connect to the mobile device. However, the button Run does not allow to the deployment of the app to the connected device because it thinks that there is no connected device. So you may get confused about what’s wrong with the device. Before doing anything, just check the following configuration. Configuring Your System to Detect Your Android Device

  1. Install the USB driver for your Android device.
  2. Enable USB debugging on your Android device.
  3. If necessary, install the Android development tools (JDK/SDK/NDK).
  4. Add your Android SDK to the RAD Studio SDK Manager.
  5. Connect your Android device to your development system using the USB cable provided with your device.

Even if you have done everything that is mentioned above, if you get this error “Android Studio doesn’t see the device”, then you are on the right page. This article is for such programmers. In this article, there are five methods listed below to solve this issue.

How To Solve “Android Studio doesn’t see the device”

Method 1

To change what your application defaults to when you click to run or debug in Android Studio, follow these steps:

Step 1: Go to the Run (on the left corner) then click on Edit Configurations.

Or you can just click here to find the “edit configurations” tab:

Step 2: Select the project. Find the Target Device section under the General tab on the Android Application page. 

That seems to be where you toggle what the project builds too. If you’re importing a project it actually defaults to Emulator, not sure why. You can also select “Open Select Deployment Target Dialog” to list both connected as well as emulated devices.

Method 2

If Android Studio doesn’t even detect your device using ‘ADB devices’.  then try to switch to PTP instead of MTP on your device. To do so, just click on “File transfer via USB touch for more options” in the notification area of the device.

And then choose the PTP option.

Then you will get a popup on your device regarding access. Just try restarting Android Studio to show up there as well though.

Method 3

On your device:

Go to settings/developer settings/allow USB debug mode

If you might have the device currently connected to your PC, then the ‘allow USB debug mode’ option is disabled. Just disconnect the device and the option should now be available. If you are using Android 4.2 and newer, the Developer options are 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.

Method 4

You may need to restart ADB, from the terminal. To do so just type the below commands:

  • ADB kill-server
  • ADB start-server

or from ddms(If you are using Android Studio version<3.1) in the devices section. Then click a small arrow down. Restart ADB

Method 5

Step 1: Hit the tab where you should see your device name but you are currently seeing “no device” and select “Troubleshoot Device Connections” from the dropdown list.

Step 2: Then you should see this on your screen. Click on the “rescan devices” button.

Step 3: If your problem persists even after rescanning, then hit the next button shown in step 2. Then do the settings in your device as suggested.

Step 4: If you cannot resolve the problem by following the above steps then click on restart ADB server. 

Step 5: After a few seconds, you will get this message: At least one Android device was detected. 

Now if you check, you will see your device’s name beside the run button.



Similar Reads

How to Fix "Android studio logcat nothing to show" in Android Studio?
Logcat Window is the place where various messages can be printed when an application runs. Suppose, you are running your application and the program crashes, unfortunately. Then, Logcat Window is going to help you to debug the output by collecting and viewing all the messages that your emulator throws. So, this is a very useful component for the ap
2 min read
Fix "Error running android: Gradle project sync failed. Please fix your project and try again" in Android Studio
In this article, we will see how to fix the error: "Gradle project sync failed. Please fix your project and try again" in Android Studio". Before getting into the solution part, let's discuss Gradle. What is Gradle? Gradle is an open-source build automation tool that automates the creation of applications. The various steps involved in creating an
5 min read
Android Device Manager - Find My Device
Android Device Manager (ADM), nowadays known as Find My Device, is a very useful feature offered by Google to help Android users locate, secure, and manage their smartphones and tablets in case they are lost or stolen. This powerful tool offers a range of functionalities that provide peace of mind and ensure the safety of your Android devices. In t
7 min read
How to Capture a Screenshot and Screen Recording of an Android Device Using Android Studio?
Android Studio is the official IDE (Integrated Development Environment) for Android app development and it is based on JetBrains’ IntelliJ IDEA software. Android Studio provides many excellent features that enhance productivity when building Android apps. Whenever we are developing an app and in that device, you don't know how to capture screenshot
2 min read
How to Fix Android ADB Device Offline, can't Issue Commands?
Android Debug Bridge (ADB) is the tool, by which we can control and manipulate our android devices. But sometimes people may face errors while using the ADB. One of the errors is Device Offline, Can't Issue Command. For a new setup and to establish the connection between the android device and follow the article:- How to Connect to Android with ADB
2 min read
Different Ways to Fix “Select Android SDK” Error in Android Studio
Android SDK is one of the most useful components which is required to develop Android Applications. Android SDK is also referred to as the Android Software Development Kit which provides so many features which are required in Android which are given below: A sample source code.An Emulator.Debugger.Required set of libraries.Required APIs for Android
5 min read
Different Ways to fix "Error running android: Gradle project sync failed" in Android Studio
Gradle is one of the most important components of Android apps. It handles all the backend tasks and manages all the external dependencies which we will be going to use in building our Android Application. Sometimes due to any issue or after formatting of your pc. Some of the Gradle files may get deleted unexpectedly. So when you will start buildin
3 min read
How to Fix “Failed to install the following Android SDK packages as some licenses have not been accepted” Error in Android Studio?
When you download the latest Android SDK tools version using the command line to install SDKs and you just try to build gradle then this error shows up: Failed to install the following Android SDK packages as some licenses have not been accepted. platforms;android-27 Android SDK Platform 27 build-tools;27.0.3 Android SDK Build-Tools 27.0.3 To build
4 min read
How to Fix "android.os.Network On Main Thread Exception error" in Android Studio?
The main reason for Network On Main Thread Exception Error is because the newer versions of android are very strict against the UI thread abuse. Whenever we open an app, a new “main” thread is created which helps applications interact with the running components of an app’s UI and is responsible for dispatching events to assigned widgets. The entir
3 min read
Fix "Android emulator gets killed" Error in Android Studio
Sometimes, (maybe after updating Android Studio) you might encounter a strange error, which might cause you a nightmare, the error is thrown by the Studio itself and it says: Error while waiting for device: The emulator process for AVD was killed Uggh...Now, what's this error all about? Why did it happen on the system? How do I fix it? Follow the S
3 min read
Article Tags :