If you meet this error when trying the build your android code:
make: Entering directory `/bsp/Project_Name'
build/core/main.mk:7: You are not using bash - builds will fail
build/core/main.mk:8: *** Stop. Stop.
make: Leaving directory `/bsp/Project_Name'
Previous version of Android seems not to check if the "sh" is bash.
Just change to point to /bin/bash instead of /bin/sh by:
sudo dpkg-reconfigure dash (and answer no)
sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh
make: Entering directory `/bsp/Project_Name'
build/core/main.mk:7: You are not using bash - builds will fail
build/core/main.mk:8: *** Stop. Stop.
make: Leaving directory `/bsp/Project_Name'
Previous version of Android seems not to check if the "sh" is bash.
Just change to point to /bin/bash instead of /bin/sh by:
sudo dpkg-reconfigure dash (and answer no)
sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh
本文介绍了一种常见的Android项目编译错误,该错误提示使用了非bash shell导致编译失败。文章提供了详细的解决步骤,包括如何通过修改系统配置将默认shell更改为bash,确保Android项目的顺利构建。

被折叠的 条评论
为什么被折叠?



