linux - "/usr/bin/ld: cannot find -lz"
I am trying to compile Android source code under Ubuntu 10.04. I get an error saying,

I had the exact same error, and like you, installing zlib1g-dev did not fix it.  Installing lib32z1-dev got me past it. I have a 64 bit system and it seems like it wanted the 32 bit library.
