Setting Android Home path in ionic framework

2019-02-17 05:45发布

I want to run my ionic project in android device.So I ran following commands

  1. Ionic add ionic-platform-web-client
  2. ionic plugin add phonegap-plugin push
  3. ionic io init
  4. ionic platform add android

All the above commands were successfully executed.When I tried to run following command:

 ionic run android 

It gives me error:

'ANDROID_HOME' environment variable is set to non-existent path.
Try update it manually to point to valid SDK directory.
You may not have the required environment or OS to run this project.

How do i fix it now?

1条回答
做自己的国王
2楼-- · 2019-02-17 05:56

Try ionic build android before android run android

查看更多
登录 后发表回答