参考网址:
https://www.jianshu.com/p/e86d33a61bcb
碰到的问题:
Couldn't find idegen.jar. Please run make first.
解决方案是:
修改文件development/tools/idegen/idegen.sh
修改后的文件如下:
#!/bin/bash if [ ! -d development ]; then echo "Error: Run from the root of the tree." exit 1 fi if [[ -z ${OUT_DIR_COMMON_BASE} ]]; then # 注释掉 # idegenjar=`find out -name idegen.jar -follow | grep -v intermediates` else # 注释掉 # idegenjar=`find $OUT_DIR_COMMON_BASE/$(basename "$PWD") -name idegen.jar -follow | grep -v intermediates` fi # 新增,/home/xx/bin/out/根据自己的实际目录进行配置 idegenjar=`find /home/xx/bin/out/ -name idegen.jar -follow | grep -v intermediates` if [ "" = "$idegenjar" ]; then echo "Couldn't find idegen.jar. Please run make first." else java -cp $idegenjar Main fi