简体   繁体   English

蚂蚁释放--> 蚂蚁:找不到命令

[英]ant release --> ant: command not found

I'm working to an Android application following the tutorial in this link ( http://gaut.am/making-an-ocr-android-app-using-tesseract/ ).我正在按照此链接 ( http://gaut.am/making-an-ocr-android-app-using-tesseract/ ) 中的教程使用 Android 应用程序。

Doing the point 2. I find some trouble inserting the commands in the shell.做第 2 点。我发现在 shell 中插入命令有些麻烦。 I solved the 'ndk-build' putting the command我解决了'ndk-build'放置命令

"export PATH=$PATH:/android-ndk-r9b/ndk-build" “导出 PATH=$PATH:/android-ndk-r9b/ndk-build”

I solved the 'android update project --path .'我解决了“android 更新项目 --path”。 using the command使用命令

"export PATH=$PATH:$ANDROID_HOME/tools" “导出路径=$PATH:$ANDROID_HOME/工具”

(Please correct me if it is wrong). (如有错误请指正)。 Then I had problems with the command "ant release".然后我在命令“ant release”时遇到了问题。 The terminal returns "ant: command not found".终端返回“ant: command not found”。 Is there something wrong?有什么不对? Hope that someone could help me希望有人可以帮助我

PS: I already read other question similar to this one but they were different cases from this one. PS:我已经阅读过与此类似的其他问题,但它们与此不同。 Hope that you could understand希望你能理解

Put Ant in the path in .bash_profile将 Ant 放在 .bash_profile 的路径中

ANT_HOME=/home/you/apache-ant-1.8.3 ANT_HOME=/home/you/apache-ant-1.8.3

PATH=$PATH:$ANT_HOME/bin PATH=$PATH:$ANT_HOME/bin

After exit the .bash_profile, you need to reload it with the command: ([dot] [space] .bash_profile)退出 .bash_profile 后,您需要使用以下命令重新加载它: ([dot] [space] .bash_profile)

$> . $> .bash_profile .bash_profile

I solved the problem changing the API of the version of the device.我解决了更改设备版本 API 的问题。 I don't know where the problem was but I did it to solve another problem and this one was automatically solved.我不知道问题出在哪里,但我这样做是为了解决另一个问题,而这个问题就自动解决了。 Sorry for the disturb抱歉打扰

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM