发生意外的错误:蚂蚁罐>的/ dev / null的在PhoneGap的退出,127 [英] An unexpected error occurred: ant jar > /dev/null exited with 127 in phonegap

查看:183
本文介绍了发生意外的错误:蚂蚁罐>的/ dev / null的在PhoneGap的退出,127的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用phongap我创建Android应用程序。每当我运行./create它为我的错误:

i using phongap to create android application. Whenever i run ./create it shows me error:

下面是我运行的命令是什么

here is what in command i am running

./create /Users/nehulagrawal/Desktop/PhoneGapTestExample com.sometest.PhoneGapTest PhoneGapTest

和我的.bash瞩目的路径是:

And my path in .bash-profile is:

export PATH=${PATH}:/Users/nehulagrawal/Desktop/android-adt/sdk/platform-tools:/Users/nehulagrawal/Desktop/android-adt/sdk/tools

这不是走的道路,所以我编辑创造文件并使其看起来像

It was not taking the path so i edit the "create" file and make it looks like

ANDROID_BIN="${ANDROID_BIN:=/Users/nehulagrawal/Desktop/android-adt/sdk/tools/android}"

错误我得到的是:

ERROR i am getting is:

./create: line 106: ant: command not found
An unexpected error occurred: ant jar > /dev/null exited with 127
Deleting project...

不知道问题出在哪里了。请任何建议将是有益的。谢谢!

Dont know where the problem is it. Please any suggestions will be helpful. Thank you!

推荐答案

安装使用BREW蚂蚁

下载并在终端执行以下命令安装自制软件:

Download and install Homebrew by executing following command in terminal:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

通过自制软件执行安装Apache Ant

Install Apache Ant via Homebrew by executing

brew install ant

运行的PhoneGap构建再次,它应该成功编译和安装Android应用程序。

Run the PhoneGap build again and it should successfully compile and install your Android app.

这篇关于发生意外的错误:蚂蚁罐>的/ dev / null的在PhoneGap的退出,127的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆