系統: ubuntu 15
剛把項目從 eclipse 轉到 Android , 在運行 gradle 構建的時候出現如下錯誤 :
Executing tasks: [:assembleDebug]
....
AAPT err(682906863): /home/php/Android/android-sdk-linux/build-tools/22.0.1/aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
原因是: 64位的Ubuntu系統, 應該是缺少 lib32stdc++6這個包,你用 apt-get install lib32stdc++6
安裝一下就可以