如何直接部署PhoneGap的应用设备 [英] How to deploy phonegap app directly to device

查看:124
本文介绍了如何直接部署PhoneGap的应用设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个的PhoneGap 3.3.0项目设置和工作完全不亚于我可以建立从CMD在拍拍.apk文件:

I have a Phonegap 3.3.0 project set up and working perfectly as much as that I can build an .APK from the cmd at pat:

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

我有我的电话接通电源后,它是Nexus 5,这似乎与Windows 8的问题,但我相信它的正常工作:

I have my Phone plugged in, its a nexus 5 which seems to have problems with windows 8, but I believe its working correctly:

$ 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've looked through the documentation but can't seem to find details on this...

推荐答案

原来,这一切都运行正常,唯一的问题是,我不得不previously安装的应用程序,以相同的名称,但签订不同。

It turned out that everything was running correctly, the only problem was that I had previously installed the app, under the same name but signed different.

简而言之,卸载相同的应用程序,或previously安装应用程序,那么此命令将工作:

Put simply, uninstall the same app, or previously installed app and then this command will work:

的PhoneGap运行的Andr​​oid

这篇关于如何直接部署PhoneGap的应用设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆