[英]About compile ADT from Android source code
When I try to compile ADT through Android source code,I used these command: 当我尝试通过Android源代码编译ADT时,我使用了以下命令:
$sdk/eclipse/scripts/build_adt.sh /home $ sdk / eclipse / scripts / build_adt.sh / home
but when I press enter,terminal exit right away。 但是当我按Enter键时,终端出口立即消失。
who can tell me why??thanks! 谁能告诉我为什么?谢谢!
If you look at the build_adt.sh
script you can see in the first few lines it is checking the length of the arguments you have provided to the script. 如果查看
build_adt.sh
脚本,您会在前几行中看到它正在检查您提供给脚本的参数的长度。
if [ $# -ne 3 ]
then
echo "Usage: $0 <out_dir> <dest_dir> <build_number>" > /dev/stderr
echo "Given arguments: $*" > /dev/stderr
exit 1
fi
You are only providing a single argument of /home
when the script is expecting three arguments <out_dir>
, <dest_dir>
and <build_number>
in that order. 当脚本需要按顺序排列三个参数
<out_dir>
, <dest_dir>
和<build_number>
时,仅提供/home
的单个参数。 The script will exit without doing anything if you have not provided it the three arguments it's expecting. 如果您未提供脚本所期望的三个参数,则该脚本将不执行任何操作而退出。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.