Running phonegap on device - no device found

前端 未结 14 1725
孤独总比滥情好
孤独总比滥情好 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 02:55

    If you have only one adb-capable device, use this command:

    phonegap run android --device

    If you have more than one you will need to specify the device ID this way:

    phonegap run android --device=

    Example:

    phonegap run android --device=SH25PW103163

    phonegap run android --target=SH25PW103163

    If you want to know the code of a device execute this in the console (shell, terminal):

    adb devices

提交回复
热议问题