title: Android SDK - aapt: error while loading shared libraries: libc++.so
body: <p>I downloaded the sdk-tools <a href="https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip" rel="nofollow noreferrer">linux-3859397.zip</a> and extract it to /opt/android (which is my ANDROID_HOME)</p>
  
  <p>So, when I launch aapt it fail to load the libc++ shared library</p>
  
  <pre><code>$ /opt/android/build-tools/27.0.3/aapt
  /opt/android/build-tools/27.0.3/aapt: error while loading shared libraries: libc++.so: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>But the libc++ exists, as example the ldd tools has found it !</p>
  
  <pre><code>$ ldd /opt/android/build-tools/27.0.3/aapt
      linux-vdso.so.1 (0x00007ffdd66b3000)
      libc++.so =&gt; /opt/android/build-tools/27.0.3/lib64/libc++.so (0x00007fc511580000)
      librt.so.1 =&gt; /usr/lib64/librt.so.1 (0x00007fc511378000)
      libdl.so.2 =&gt; /usr/lib64/libdl.so.2 (0x00007fc511170000)
      libpthread.so.0 =&gt; /usr/lib64/libpthread.so.0 (0x00007fc510f50000)
      libz.so.1 =&gt; /usr/lib64/libz.so.1 (0x00007fc510d38000)
      libm.so.6 =&gt; /usr/lib64/libm.so.6 (0x00007fc5109e0000)
      libgcc_s.so.1 =&gt; /usr/lib64/libgcc_s.so.1 (0x00007fc5107c8000)
      libc.so.6 =&gt; /usr/lib64/libc.so.6 (0x00007fc5103e0000)
      /lib64/ld-linux-x86-64.so.2 (0x00007fc511698000)
  
  $ file /opt/android/build-tools/27.0.3/lib64/libc++.so
  /opt/android/build-tools/27.0.3/lib64/libc++.so: setgid ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
  </code></pre>
  
  <p>I tried to install libstdc++-devel both in 32bit and 64 bits but that do not solve this issue</p>
  
  <p>Thanks for your help</p>
  
  <p><strong>Note:</strong> same problem with aapt2</p>