out/xxxxxx/host/linux-x86/bin/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory make: *** [out/xxxxxx/target/product/msm8226/obj/APPS/BackupRestoreConfirmation_intermediates/package.apk] Error 127 make: *** Deleting file `out/xxxxxx/target/product/msm8226/obj/APPS/BackupRestoreConfirmation_intermediates/package.apk' out/xxxxxx/host/linux-x86/bin/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory make: *** Waiting for unfinished jobs.... make: *** [out/xxxxxx/target/product/msm8226/obj/APPS/CalendarProvider_intermediates/package.apk] Error 127 make: *** Deleting file `out/xxxxxx/target/product/msm8226/obj/APPS/CalendarProvider_intermedackage.apk] Error 127 make: *** Deleting file `out/xxxxxx/target/product/msm8226/obj/APPS/DefaultContainerService_intermediates/package.apk' out/xxxxxx/host/linux-x86/bin/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory make: *** [out/xxxxxx/target/product/msm8226/obj/APPS/DownloadProvider_intermediates/package.apk] Error 127 make: *** Deleting file `out/xxxxxx/target/product/msm8226/obj/APPS/DownloadProvider_intermediates/package.apk' ******** Android build FAILED ********
error while loading shared libraries: libz.so.1: cannot open shared object file 安裝
$ sudo apt-get install lib32z1 正在讀取套件清單... 完成 正在重建相依關係 正在讀取狀態資料... 完成 下列【新】套件將會被安裝: lib32z1 升級 0 個,新安裝 1 個,移除 0 個,有 1 個未被升級。 需要下載 57.5 kB 的套件檔。 此操作完成之後,會多佔用 178 kB 的磁碟空間。 下載:1 http://tw.archive.ubuntu.com/ubuntu/ trusty/main lib32z1 amd64 1:1.2.8.dfsg-1ubuntu1 [57.5 kB] 取得 57.5 kB 用了 0s (176 kB/s) 選取了原先未選的套件 lib32z1。 (讀取資料庫 ... 目前共安裝了 214592 個檔案和目錄。) Preparing to unpack .../lib32z1_1%3a1.2.8.dfsg-1ubuntu1_amd64.deb ... Unpacking lib32z1 (1:1.2.8.dfsg-1ubuntu1) ... 設定 lib32z1 (1:1.2.8.dfsg-1ubuntu1) ... Processing triggers for libc-bin (2.19-0ubuntu6.3) ...
Case 2:
host C++: aidl <= frameworks/base/tools/aidl/generate_java.cpp 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/xxxxxx/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp out/xxxxxx/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp: In function 'int yyparse()': out/xxxxxx/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp:1947:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] out/xxxxxx/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp:2091:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] Export includes file: frameworks/base/tools/aidl/Android.mk -- out/xxxxxx/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/export_includes Lex: aidl <= frameworks/base/tools/aidl/aidl_language_l.l Notice file: frameworks/base/tools/aidl/NOTICE -- out/xxxxxx/host/linux-x86/obj/NOTICE_FILES/src//bin/aidl.txt /bin/bash: flex: command not found make: *** [out/xxxxxx/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Error 127 make: *** Waiting for unfinished jobs.... Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. ******** Android build FAILED ********
安裝
sudo apt-get install flex
Case 3:
sudo apt-get install libxml2-utils
沒有留言:
張貼留言