Error Unable to run mksdcard SDK tool in Android Studio in Linux

When installing the Android Studio in Ubuntu Linux, the error Unable to run mksdcard SDK tool appears. This can be fixed by opening a terminal window and entering the following command:
$ sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6 <enter>