Android Studio and external device

Is it possible to emulate an application with an external device in Android studio? I have a device connected to the computer, but when the application starts, it does not recognize the device.

Note. The debug mode and mode for receiving unknown sources are activated.

+6
source share
4 answers

Go into the startup configuration of your module and change this:

enter image description here

There you can choose the weather you want to run in the emulator, device, or if IntelliJ should ask you every time you start:

enter image description here

+19
source

Try installing the driver from Google - http://developer.android.com/sdk/win-usb.html This helped me

+2
source

I had the same problems, and I spent hours surfing the net to figure out what was wrong. In my case, the solution was that Android Studio has a default target interface of 16 and my Huawei runs Android 4.0.4, which is API 15.

Change it in AndroidManifest and it should work correctly.

android:targetSdkVersion="15" 
+1
source

A driver for your portable device is installed. For this

  • Right-click My Computer or This Computer
  • Click on properties
  • In the left pane, click Device Manager.
  • Now find out if your device is connected correctly in the portable device section.
  • If not, try installing the appropriate driver for your device according to your System.
0
source

Source: https://habr.com/ru/post/945431/


All Articles