zoukankan      html  css  js  c++  java
  • phonegap 随笔

    开发者论坛

    http://bbs.phonegapcn.com/forum.php

    phone调用android本地方法

    http://blog.csdn.net/crazyman2010/article/details/46694925

    下载安装:

    官网上两个方式都试过还是直接用node.js安装比较好吧。下载node.js,其中带有npm可以使用npm命令

    mac下提倡使用brewhome 进行 node.js管理 http://www.cnblogs.com/minyc/p/myc201606191543.html

    mac下使用命令 

    sudo npm install -g phonegap 等待,有墙所以要有耐心 下载完成后出现

    /usr/local/bin/phonegap -> /usr/local/lib/node_modules/phonegap/bin/phonegap.js
    phonegap@6.2.7 /usr/local/lib/node_modules/phonegap
    ├── opener@1.4.1
    ├── pluralize@0.0.4
    ├── colors@0.6.0-1
    ├── semver@1.1.0
    ├── minimist@0.1.0
    ├── qrcode-terminal@0.9.4
    ├── shelljs@0.1.4
    ├── phonegap-build@0.10.0 (colors@0.6.2, qrcode-terminal@0.8.0, shelljs@0.0.9, optimist@0.3.7, phonegap-build-api@0.4.0)
    ├── prompt@0.2.11 (revalidator@0.1.8, pkginfo@0.4.0, read@1.0.7, winston@0.6.2, utile@0.2.1)
    ├── update-notifier@0.6.3 (is-npm@1.0.0, semver-diff@2.1.0, chalk@1.1.3, boxen@0.3.1, configstore@2.0.0, latest-version@2.0.0)
    ├── connect-phonegap@0.21.7 (home-dir@0.1.2, connect-inject@0.3.2, ip@0.3.1, adm-zip@0.4.7, walkdir@0.0.8, shelljs@0.2.6, request-progress@0.3.1, http-proxy@1.8.1, localtunnel@1.3.0, useragent@2.0.8, gaze@0.4.3, tar@0.1.19, node-static@0.7.0, socket.io@1.4.6, request@2.33.0, archiver@0.14.3, connect@2.12.0)
    └── cordova@6.1.1 (underscore@1.7.0, q@1.0.1, ansi@0.3.1, nopt@3.0.1, update-notifier@0.5.0, cordova-common@1.3.0, cordova-lib@6.1.1)

    之后 

    phonegap --version查看版本

    进入要新建目录的文件夹 cd xx

    phonegap minyuchun$ phonegap create hello com.myc.hello HelloWorld   (create后分别为 文件名,包名,以及项目名字)

    进入创建的目录hello  cd hello

    phonegap platforms add android 添加android应用

    目录下的platforms文件夹下会出现android文件夹 其中有android应用  在android studio中打开

     

  • 相关阅读:
    oracle11g expdp/impdp数据库
    SqlServer触发器
    tomcat8.5.20配置https
    oracle常用函数积累
    Eclipse 搭建tomcat+动态项目完整版
    Windows7下ftp服务器
    Orcle定时生成表数据作业
    Oracle将一列值逗号拼接wm_concat函数
    Oracle表空间 ORA-01653:
    node+mongodb+ionic+cordova
  • 原文地址:https://www.cnblogs.com/minyc/p/myc201606121416.html
Copyright © 2011-2022 走看看