Running phonegap on device - no device found

前端 未结 14 1700
孤独总比滥情好
孤独总比滥情好 2021-01-30 02:27

I am trying to run an app that I made in phonegap on my device, connected with USB.

-> phonegap run android
[phonegap] detecting Android SDK environment...
[p         


        
14条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-30 03:00

    I was having this same problem on an LG Optimus phone; adb reported that the device was there, but cordova run android --device failed with "Failed to deploy to device; no devices found". Turns out that of the four connection modes available on the phone:

    • Charge phone
    • Media sync (PTP)
    • Internet connection
    • Camera (PTP)

    The only one that works is Internet connection -> Modem

    Hope this saves someone some hair-tearing. :)

提交回复
热议问题