簡體   English   中英

如何將phonegap應用程序直接部署到設備

[英]How to deploy phonegap app directly to device

我有一個Phonegap 3.3.0項目設置和完美工作,我可以從patd的patd構建一個.APK:

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

我有我的手機插入,它的連接5似乎有Windows 8的問題,但我相信它的工作正常:

$ adb devices
List of devices attached
029188d8e0784684        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)

我查看了文檔,但似乎無法找到有關此內容的詳細信息...

事實證明,一切都運行正常,唯一的問題是我以前安裝了應用程序,名稱相同但簽名不同。

簡而言之,卸載相同的應用程序或以前安裝的應用程序然后此命令將起作用:

phonegap run android

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM