Installing the Android Studio on my CentOS 7 development system went fairly well once I loaded the latest Java JDK from the standard yum repository. During the install wizard I did run into an issue with a generic “Unable to run mksdcard” error message. This is the studios watered-down message from the actual command execution. You can get more details by going to ~/Android/Sdk/tools and running mksdcard from the command line.
# cd ~/Android/Sdk/tools # ./mksdcard
Here is where I found the compiled executable was missing some 32-bit libraries that are required to run the exe.
bash: ./mksdcard: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
A bit of digging and I found I needed glibc, which after another attempt to execute mksdcard told me I also needed libstdc++.so.6. By using yum whatprovides libstdc++.so.6 I learned both packages I needed to install. These additional installs helped get Android Studio up-and-running on CentOS 7.
# sudo yum install glibc.i686 # ./mksdcard ./mksdcard: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory # whatprovides libstdc++.so.6 libstdc++-4.8.2-16.el7.i686 : GNU Standard C++ Library libstdc++-4.8.2-16.el7.i686 : GNU Standard C++ Library # sudo yum install libstdc++-4.8.2-16.2.el7_0.i68
With those couple of new libraries installed the Android Studio app is now running on my CentOS 7 development box with the MATE desktop UI.