To be clear I ran into this problem before. Last week I install KUBUNTU 18.04 64 bit on my laptop. As an android project required 32-bit version of libc++.so.1 I run
sudo apt-get install lib32stdc++6 lib32z1 lib32z1-dev
Then restart and rebuild the project. The problem is gone and the project compiles successfully.
Then I decided to install same iso in my desktop. But above command doesn't resolve my issue this time. When I run ldd Android/Sdk/build-tools/29.0.3/lld
on my laptop there is a valid link between /usr/lib/x86_64-linux-gnu/libc++.so.1
.
But on desktop there is no such file in that directory. Andorid studio is giving following error
/home/user_name/Android/Sdk/build-tools/29.0.3/lld: error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory
sudo apt-get install libc++-dev
solve the problem. Thanks a lot, @Knud Larsen. Please make an answer so that I can accept that.