Running phonegap on device - no device found

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

    I had this same issue but for a different reason. Here's how I solved it...

    1. Installed Google USB Driver
    2. Installed Samsung USB Driver
    3. Updated my Android SDK Platform-tools (Android SDK Manager)
    4. Edited Widget ID in config.xml to something different. <-- Finally solved it.

    Working on the same project from two machines could cause a conflict when installing the app from the second machine. Either uninstall the app from the phone and fresh install or change the widget ID. Hope this helps someone, the PhoneGap CLI doesn't explicitly give an error telling this.

提交回复
热议问题