Download the source from here: https://github.com/miracle2k/android-platform_sdk/blob/master/emulator/mksdcard/mksdcard.c
Then simply compile with “gcc mksdcard.c -o mksdcard”
Backup mksdcard in the SDK tools subfolder and replace with the newly compiled one
Then Android Studio will now be happy with your SDK