Running phonegap on device - no device found

前端 未结 14 1706
孤独总比滥情好
孤独总比滥情好 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´ve an LG G4, and i´m using Visual Studio Tools for Apache Cordova (TACO).

    When trying to debug on device i was receiving the message: Unable to deploy to Android device, no attached device was found. If you recently attached a device, you may need to wait a few seconds before it is recognized.

    And what worked for me was changing the device from the media transfer protocol (MTP) to photo transfer protocol (PTP), in the USB settings. Phone Screenshot

提交回复
热议问题