0
我尝试在我的Mac上使用PhoneGap创建Android应用程序。但是,我只能创建应用程序(hello),并且无法使用$ cordova platform add android
命令为其创建Android平台。PhoneGap:无法使用终端创建Android应用程序
我得到的错误信息是:[错误:命令android
失败。确保您已安装最新的Android SDK,并将android
命令(在工具/文件夹内)添加到您的路径中。输出:]
的截图:
我尝试使用put the PATH in the bash profile filetouch ~/.bash_profile; open ~/.bash_profile
方法,但它仍然没有奏效。
如何解决这个问题?
完成上述步骤后,我得到了JAVA_HOME错误。 http://i.imgur.com/KUwrIoD.jpg @Dato'Mohammad Nurdin –