When trying to install Android Studio on my Linux Laptop, I get "Unable to Run mksdcard tool" From what I can tell from searching, this is usually caused by lacking the 32 bit compatibility libraries on 64 bit Linux, however I am running it on an ARMv7 processor, using the crouton project to use Linux on my Chromebook. I have tried install the recomended packages ending in i386, but the command line returned:
Reading Package Lists... Done
Building Dependendency Tree
Reading State information... Done
E: unable to locate package [Name of package here]
E: Couldn't find any package by Regex '[Name of package]'
Does anyone know what is causing this and how I can fix it?
I've discovered a workaround.
After a little searching, I've found that we can create executable binary of the tool for the ARMv7 platform ourselves! Whupee!
mksdcard.c. Download this to wherever you'd like, but make sure you download it asmksdcard.cand not asmksdcard.c.txt, which your browser might try to do. You can always rename the file later in case you accidentally save the filename incorrectly.chrootenvironment, head to the directory where you downloaded the file.gcccompilation tools installed. Try runninggcc -vin an attempt to see what version of GCC you have installed. If this doesn't work, you'll need to install GCC viasudo apt-get install gcc.gcc -o mkdscard mksdcard.c. This uses GCC to compile the source code into something that can be executed. After compilation has completed, you can use./mkscardto have Linux execute the binary file, which verifies that it works.~/Downloads/Android/Sdk/tools. By runningls, you'll list the files and find the version ofmksdcardthat your Linux distribution doesn't understand how to run. (Running./mksdcardon this file will confirm this.)toolsfolder. (I created abackups/directory within the Android SDK Tools folder to move it to.)rm -r mksdcardto delete the oldmksdardbinary.cp ~/Downloads/mksdcard .(Copies themksdcardbinary we've created to the current directory., the Android SDK Tools folder.)mksdcardfailing, hit Retry and the installation should continue. After it's finished, be sure to apply any updates that are recommended by the environment. Enjoy!