VS 2013 Multi Device Hybrid App Failed to deploy t

2019-05-22 07:17发布

I use the new VS 2013 phonegap/cordova template to create hybrid apps.

It all works fine using emulators and the ripple media emulators but when i connect my phone to it . I get a error saying that (See screenshot)enter image description here

ERROR: Failed to launch application on device: ERROR: Failed to install apk to device: ERROR: Failed to deploy to device, no devices found. BlankCordovaApp1

Below were the steps i tried to resolve

http://blog.falafel.com/running-cordova-multi-device-hybrid-app-from-visual-studio-on-android-device/

I use a Alcatel one tocuh X+ phone see below for the device driver installed and up to date.

Also the Environment variables set are also shown below

enter image description here enter image description here

I have even tried to edit the android_winusb.inf file too to include its hardware ids enter image description here

Still no go . Anything that i am doing here or missing here ?

4条回答
Root(大扎)
2楼-- · 2019-05-22 07:33

I solved this by going into developer options and turning ON USB debugging.

查看更多
劳资没心,怎么记你
3楼-- · 2019-05-22 07:37

Make sure that the environment variables are added to the SYSTEM path, rather than just your local user path.

查看更多
贼婆χ
4楼-- · 2019-05-22 07:46

Open a command prompt and enter:

adb devices

This should print out a list of attached Android devices, your device must be there for VS to find it.

adb.exe is part of the Android SDK, so if your path does not find it, you can look in /platform-tools/

查看更多
SAY GOODBYE
5楼-- · 2019-05-22 07:52

The problem was indeed with the mode of "USB computer connection" which should be selected as "PTP Camera" for the device to be recognized along with the below steps

  1. Without Driver the Device Manager screen

  1. enter image description here

    1. enter image description here

    2. enter image description here

    3. enter image description here

    4. enter image description here

    5. enter image description here

    6. enter image description here

    7. enter image description here

    8. enter image description here

    9. enter image description here

The device on performing the command "adb devices" might still show "unauthorized" please follow the steps described in the link https://stackoverflow.com/a/25546300/581157

  1. enter image description here
查看更多
登录 后发表回答