Android – how to deploy phonegap applications directly to devices
                                        
                    •
                    Android                                    
                I have a phonegap 3.3.0 project setup and work perfectly. I can build an. APK from PATD's PATD:
jamie@Hutber-8 /c/var/www/sexdiaries.co.uk/sdapp/app
  $phonegap build android
    [phonegap] detecting Android SDK environment...
    [phonegap] using the local environment
    [phonegap] compiling Android...
    [phonegap] successfully compiled Android app
I have my phone plugged in. Its connection 5 seems to have a problem with Windows 8, but I believe it works normally:
$adb devices
List of devices attached
029188d8e0784684        device
However, when I try to deploy to this device:
$phonegap install android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] trying to install app onto device
[phonegap] no device was found
[phonegap] trying to install app onto emulator
   [error] An error occurred while emulating/deploying the android project.
events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:980:11)
I looked at the document, but it seems I can't find details about this content
resolvent:
It turned out that everything was working properly. The only problem was that I had previously installed an application with the same name but different signatures
In short, uninstall the same application or a previously installed application, and then this command will work:
Phonegap running Android
                            The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
                        
                                            
                        THE END
                    
                    
                    
                                                        二维码
                        
                        
                                                
                        