gpt4 book ai didi

android - 如何在 Windows 上安装 Phonegap 3.3

转载 作者:行者123 更新时间:2023-11-28 18:34:34 25 4
gpt4 key购买 nike

我刚去了 Phonegap,发现我需要安装 node.js 才能开始。

我这样做了,然后按照命令行安装 phonegap。

可是,它在哪里呢?我在我的程序文件文件夹中没有看到任何东西,我没有看到 Eclipse,并且在 Phonegap 的网站上也没有关于下一步做什么的文档。我不明白为什么这个指令这么含糊?我错过了什么?我下载/安装的所有文件都去了哪里?

谢谢

最佳答案

Phonegap 3.3 installation there is no proper info in phonegap site. 

The reason of installing nodejs is, phonegap cordova are created as node modules.

Required Software’s:
Follow the steps. 1 Node Js 2 ANT 3 Android_sdk 4 JDK

open command prompt:
Follow the steps
C:\user\youruser>npm install -g phonegap
C:\user\youruser>npm install -g cordova
Set Environment variables:
Mycomputer -> Right Click -> properties -> Advance System settings -> Environment
variables
set path for 1. Java JDK 2. Android SDK 3. ANT
C:\user\youruser>cordova platform add android
C:\user\youruser>phonegap create First-app
C:\user\youruser>cd First-app
C:\user\youruser>phonegap run android

Phonegap will be installed and apk will be created in bin folder.

You will be getting
[phonegap] detecting Android SDK environment..
[phonegap] using the local environment
[phonegap] compiling Android...
[phonegap] successfully compiled Android app
[phonegap] trying to install app onto device
[phonegap] successfully installed onto device

You can able to see phonegap modules in C:\Users\yourusername\AppData\Roaming\npm.

Hope this will be very helpful. Let me know if you face any issues.

关于android - 如何在 Windows 上安装 Phonegap 3.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21587413/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com