/******************************************************************************** */bin/bash: [xxxx]: Command not Found * Description: * This article is primarily to record compilation errors encountered during Android compilation. * 2016-5-21 Shenzhen Nanshan Ping Shan village Zengjianfeng ************************************************** *****************************/First, reference article:1. Ubuntu build Android Compilation Environment Summary http://blog.csdn.net/nxh_love/article/details/8834849second, the error phenomenon:1. Error1:1. Error phenomena: ... sses-Jarjar.jar Copying: out/target/common/obj/java_libraries/ext_intermediates/Classes.jar Copying: out/target/common/obj/java_libraries/ext_intermediates/Noproguard.classes.jar target Dex:ext Copying: out/target/common/obj/java_libraries/ext_intermediates/noproguard.classes.dex Target Jar:ext ( out/target/common/obj/java_libraries/ext_intermediates/Javalib.jar)'Out/target/common/obj/java_libraries/ext_intermediates/classes.dex' as 'Classes.dex'... Yacc:aidl<= frameworks/Base/tools/aidl/AIDL_LANGUAGE_Y.Y Bison-d-o out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_y.cpp frameworks/Base/tools/aidl/aidl_language_y.y/bin/Bash:bison:command not found make:*** [ out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_y.cpp] Error127 2. WORKAROUND: [email protected]:~/myandroid$ sudo apt-GetInstall Bison2. Error2:1. Error phenomena: ... host C+ +: Aidl <= frameworks/Base/tools/aidl/generate_java_binder.cpp host C+ +: Aidl <= frameworks/Base/tools/aidl/generate_java_rpc.cpp host C+ +: Aidl <= out/host/linux-x86/obj/executables/aidl_intermediates/Aidl_language_y.cpp out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_y.cpp:in function'int Yyparse ()': out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_y.cpp:1948: *: warning:deprecated Conversion from stringConstant to'char*'[-wwrite-Strings] out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_y.cpp:2090: *: warning:deprecated Conversion from stringConstant to'char*'[-wwrite-Strings] Lex:aidl<= frameworks/Base/tools/aidl/AIDL_LANGUAGE_L.L/bin/Bash:flex:command not found make:*** [ out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_l.cpp] Error127 2. WORKAROUND: [email protected]:~/myandroid$ sudo apt-GetInstall Flex
/bin/bash: [xxxx]: Command not found