6

Is it possible to emulate an app with an external device in android studio? I have a device connected to the computer, but when you run the app it does not recognize the device.

Note: The mode and debugging mode to accept unknown sources are activated.

Androidz
  • 77
  • 1
  • 1
  • 3

4 Answers4

19

Go to the run configuration of your module and change that:

enter image description here

There you can choose weather you want to launch it in an emulator, device or if IntelliJ should ask you every time when you run it:

enter image description here

Ahmad
  • 69,608
  • 17
  • 111
  • 137
  • thanks guys, I used path: run -> edit configuration -> Target device. and everything worked normally thanks again – Androidz May 20 '13 at 16:23
  • 3
    @Androidz If the answer solved your problem, click the green check mark on the left to mark it as the correct answer. That's the Stack Overflow way of saying thanks. – Dan Hulme May 21 '13 at 17:57
2

Try to install driver from Google - http://developer.android.com/sdk/win-usb.html It helped for me

serhiisavruk
  • 1,162
  • 1
  • 8
  • 14
1

i had the same problems and i have been surfing the net for hours to figure what is wrong. In my case the solution was that Android Studio has a default targeted-API 16 and my Huawei runs android 4.0.4 which is API 15.

Change it in the AndroidManifest and it should run properly!!

android:targetSdkVersion="15"
bofredo
  • 2,348
  • 6
  • 32
  • 51
0

Check driver for your portable device is installed or not. To do so,

  1. Right click on My Computer or This Pc
  2. Click on the properties
  3. In the left, click device manager.
  4. Now find out whether your device is connected properly under portable device section.
  5. If not then try to install suitable driver for your device according your System.
Saeed Rehman
  • 165
  • 3
  • 14