「Cordova/helloworld」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→browerをビルドチェック&ビルド&実行) |
(→androidをビルドチェック&ビルド&実行) |
||
行20: | 行20: | ||
cordova build android | cordova build android | ||
cordova run android | cordova run android | ||
+ | |||
+ | ==gradle pathエラーが出たとき== | ||
+ | <pre> | ||
+ | Could not find an installed version of Gradle either in Android Studio, | ||
+ | or on your system to install the gradle wrapper. Please include gradle | ||
+ | in your path, or install Android Studio | ||
+ | Some of requirements check failed | ||
+ | </pre> | ||
+ | |||
+ | $ brew install gradle | ||
==参考== | ==参考== | ||
https://qiita.com/AyumuSuzuki/items/17945ea1cfff1418e364 | https://qiita.com/AyumuSuzuki/items/17945ea1cfff1418e364 |
2020年5月27日 (水) 14:01時点における版
目次
プロジェクト作成
cordova create helloworld com.example.helloworld helloworld cd helloworld
プラットフォーム追加
cordova platform add android cordova platform add ios cordova platform add browser
browerをビルドチェック&ビルド&実行
cordova requirements browser cordova build browser cordova run browser
アクセス ttp://localhost:8000/index.html
androidをビルドチェック&ビルド&実行
cordova requirements android cordova build android cordova run android
gradle pathエラーが出たとき
Could not find an installed version of Gradle either in Android Studio, or on your system to install the gradle wrapper. Please include gradle in your path, or install Android Studio Some of requirements check failed
$ brew install gradle