1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

初めてionicを使ってみる

Last updated at Posted at 2018-09-02

基本環境を構築する

  curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
  vi ~/.bash_profile 
  nvm --version
nvm ls-remote
nvm install v10.9.0
$ node -v
v10.9.0
$ npm -v
6.2.0

  • install ionic & cordavo
npm i -g ionic cordova

$ ionic --version
4.1.1
$ cordova --version
8.0.0

Android SDKの環境変数を設定

export ANDROID_HOME=~/Library/Android/sdk
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
export PATH=$PATH:~/Library/Android/sdk/platform-tools:~/Library/Android/sdk/tools
export PATH=$PATH:"/Applications/Android Studio.app/Contents/gradle/gradle-4.1/bin/"

プロジェクトを作成

$ ionic start hello_world blank

Androidアプリを作成

$  ionic cordova run android
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?