ubuntu環境開發android時候沒法找到aapt

環境:ubuntu kylin 14.04系統java

android使用adt-linux64位linux

出現錯誤的內容:android

 /usr/adt-bundle-linux-x86_64-20140321/sdk/build-tools/android-4.4.2/aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
/usr/adt-bundle-linux-x86_64-20140321/sdk/build-tools/android-4.4.2/aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
c++


緣由緣由是Android sdk的文件都是在32位的庫編譯的,在64位系統上沒法找到對應的庫ubuntu

解決方法:ui

首先執行 : sudo apt-get install lib32stdc++6spa

此時執行: sudo apt-get install lib32z1 lib32z1-dev開發

運行aapt,問題解決.get

注意:軟件開發路徑裏面不要含有中文,有時候也會出現上述狀況。編譯


不能自動生成R.java文件緣由:

1.項目路徑有中文

2.版本不匹配,運行sdk manager下載相應版本。

3.clear項目(通常沒用)

相關文章
相關標籤/搜索