I see a lot of posts about writing to the SD card, but I believe my problem is different. I am unable to create the SD card during the process of building an AVD.
I
So I found the problem. I was using a 64-bit Linux install, which did not have the ia32-libs package installed by default. The mksdcard utility will not run without this package. After installing it, I was able to build the AVD without a problem using the AVD manager.
I had a different problem using 32bit Ubuntu. When i tried to run mksdcard by hand, I was getting a file not found error.
The problem was open-jre/jdk. I installed oracle java and the problem was fixed. Unfortunately you can no longer install oracle java through apt/synaptic and have to jump through some extra hoops:
https://github.com/flexiondotorg/oab-java6
On Ubuntu 16.04 LTS x64, using Android Studio 2.1 (also tested on 2.3.3), run from a terminal:
sudo apt-get install lib32stdc++6
I had the same problem. After troubleshooting, I came to know that, it was because of my Windows is 32bit and my mksdcard is compatible with 64 bit only. Then I just copied a mksdcard of 32 bit to tools folder, and deleted the older one. It solved my problem.
I just encountered the same problem. NONE of the SDK tools will run on 64-bit Ubuntu without installing ia32-libs (EXAMPLE: sudo apt-get install ia32-libs).
Also had this problem and after installing the i386 package I was able to create a SD-card for my Android emulator I had to do two steps
sudo apt-get update
sudo apt-get install ia32-libs
After this was finished, I was able to create an emulator with a SD-card attached