最近网上搜了一些资料,以前版本的有个安装包,但是最新的版本没有了,他是通过命令行安装并且创建App的,我主要是看的他的文档来设置的,呵呵! 这有是我. NPM으로 PhoneGap 설치 NPM(Node Packaged Modules)은 CentOS의 yum, Ubuntu의 apt-get, Ruby의 gem과 같은 것이다. 필요한 모듈을 원격 리파지토리에서 바로 다운.
I’ve created a sample mobile application to help developers get started building mobile applications with PhoneGap and AngularJS quickly. The sample application. I built this tutorial to serve as a guide to creating a hybrid mobile application combining both native iOS controls and Cordova/PhoneGap components to leverage the. IOS; Android; Embedding the Webview Creating Apps with PhoneGap and iOS Native Components. Before getting started you should read this blog post about choosing a. In this third installment in a series covering four ways to develop a mobile application, we’ll create a multi-platform solution using PhoneGap.
JDK (搜索一下....)2 android SDK 最新版(我当时的版本是 API 1. Ant 打包工具 (百度一个或者. ADT 点击打开链接 )5 ADT (ecplise 里的插件,安卓开发工具插件 下载上面的链接,内部集成了ADT)6 Node.
Node. js安装成功后将以上配置好环境变量 (配置方法略. JDK ; android SDK; Ant ; 贴上我的 path 供大家参考: (建议配成 ; %ANT_HOME%bin; 去掉bin)F: 工具Antant- 1. C: Developsdksdkplatform- tools; C: Developsdksdktools; %Android%.; C: Developnodejs; %JAVA_HOME%bin; C: Developnodejs拥有以上工具后 接下来开始phonegap的安装了 phonegap 官网. Mac使用: sudo npm install - g phonegap )//等待安装 完成后安装 cordova: npm install - g cordova ( Mac使用: sudo npm install - g cordova )安装完成后 检验语句: phonegap - versioncordova - version 在命令行 使用: phonegap create my- app. HTML5 ; CSS ; JS 文件都拷贝到这下面plugins .
Url(); 方法public class baozi extends Cordova. Activity. public void on. Create(Bundle saved.
Instance. State). Create(saved. Instance. State). super. init(). Set by < content src="index. Url(Config. get. Start. Url()). super. load. Url("file: ///android_asset/www/index.
Url(" "); 中填写你的启动页面参数: " file: ///android_asset/www/index. API 改成最新版的android API 就好了如果导入工程遇到问题 可以查阅我此篇文章Blog: http: //blog. Phonegap解决错误: Error initializing Cordova: Class not found: http: //blog.