Cordova

cordova of android

cordova plugin add cordova-plugin-splashscreen

安裝

npm install -g cordova

windows npm的安狀請上網找

http://cordova.apache.org/#getstarted

指令

cordova create <path>

cordova platform add <platform name>

example of cordova help:

Examples1
    cordova create myApp org.apache.cordova.myApp myApp
    cordova plugin add cordova-plugin-camera --save
    cordova platform add android --save
    cordova requirements android
    cordova build android --verbose
    cordova run android
    cordova build android --release -- --keystore="..\android.keystore" --storePassword=android --alias=mykey


Example 2
$ cordova create hello com.example.hello HelloWorld
$ cd hello
$ cordova platform add android
$ cordova prepare              # or "cordova build"

https://cordova.apache.org/docs/zh-tw/latest/guide/platforms/android/ http://cordova.apache.org/#getstarted

Try

建立專案

cordova create TestApp com.example.test_app TestProject

使用cmd執行tree /f D:\project\App\TestApp將會列出cordova專案目錄如下所示

D:\PROJECT\APP\TESTAPP
│  config.xml
├─hooks
│      README.md
├─platforms
├─plugins
└─www
    │  index.html
    │
    ├─css
    │      index.css
    │
    ├─img
    │      logo.png
    │
    └─js
            index.js

建立platform

cordova platform add android

載入noCordova plugin splashcreen

cordova plugin add cordova-plugin-splashscreen

不知道要幹嘛的

將www放進去

build

cordova build android

open Android Studio

open existing project 要選到platform android

run

results matching ""

    No results matching ""