【发布时间】:2017-08-20 08:07:59
【问题描述】:
我正在使用 Ionic2,我想在 mac 中运行 android:当我使用命令时:
ionic cordova run android
我遇到了这个错误:
ERROR running one or more of the platforms: Android SDK not found. Make
sure that it is installed. If it is not at the default location, set
the ANDROID_HOME environment variable.
You may not have the required environment or OS to run this project
虽然我在那个位置安装了 SDK:
/Users/macbookpro/Library/Android/sdk
当我在终端中写这个命令时:
export ANDROID_HOME=/Users/macbookpro/Library/Android/sdk
然后写:
sudo nano /etc/paths
我只有这些路径:
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
如何正确添加路径!
【问题讨论】:
标签: android ionic-framework ionic2